test(wpmc S3): lock add_shortcode call in ShortcodeDmr::do_register

This commit is contained in:
Vladimir Bryzgalov
2026-05-12 20:06:07 +05:00
parent f68b30b4e6
commit 464d254f1c
+11
View File
@@ -16,4 +16,15 @@ final class ShortcodeDmrTest extends TestCase
'ShortcodeDmr::register() must hook init' '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);
}
} }