e0b87dde0c
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
432 B
PHP
20 lines
432 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WPMultiCity\Tests;
|
|
|
|
use WPMultiCity\PostType;
|
|
|
|
final class PostTypeTest extends TestCase
|
|
{
|
|
public function test_register_attaches_init_action(): void
|
|
{
|
|
PostType::register();
|
|
|
|
self::assertNotFalse(
|
|
has_action('init', [PostType::class, 'do_register']),
|
|
'PostType::register() must attach init action with do_register handler'
|
|
);
|
|
}
|
|
}
|