diff --git a/tests/test-collections.php b/tests/test-collections.php index 40046355a..54f176a0f 100644 --- a/tests/test-collections.php +++ b/tests/test-collections.php @@ -89,7 +89,9 @@ class Collections extends \WP_UnitTestCase { $this->assertTrue($x->validate()); $this->assertTrue(empty($x->get_errors())); + global $Tainacan_Collections; + $this->assertTrue(has_action('init', array($Tainacan_Collections, 'register_post_type')) !== false, 'Collections Init is not registred!'); } }