test init

This commit is contained in:
Jacson Passold 2017-11-23 17:06:57 -02:00
parent 6e619d7431
commit 68672444f8
1 changed files with 2 additions and 0 deletions

View File

@ -89,7 +89,9 @@ class Collections extends \WP_UnitTestCase {
$this->assertTrue($x->validate()); $this->assertTrue($x->validate());
$this->assertTrue(empty($x->get_errors())); $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!');
} }
} }