diff --git a/tests/ShortcodeDmrTest.php b/tests/ShortcodeDmrTest.php index 5a819f7..a11b8bb 100644 --- a/tests/ShortcodeDmrTest.php +++ b/tests/ShortcodeDmrTest.php @@ -16,4 +16,15 @@ final class ShortcodeDmrTest extends TestCase 'ShortcodeDmr::register() must hook init' ); } + + public function test_do_register_registers_shortcode(): void + { + \Brain\Monkey\Functions\expect('add_shortcode') + ->once() + ->with('shortcode_dmr', [ShortcodeDmr::class, 'render']); + + ShortcodeDmr::do_register(); + + self::assertTrue(true); + } }