check if a new created collection is draft by default

This commit is contained in:
Jacson Passold 2017-12-01 00:53:20 -02:00
parent eba6eb55e2
commit c7394be0b5
1 changed files with 1 additions and 4 deletions

View File

@ -30,15 +30,12 @@ class Collections extends \WP_UnitTestCase {
$this->assertEquals('Tainacan\Entities\Collection', get_class($col));
//
$test = $Tainacan_Collections->fetch($col->get_id());
$this->assertEquals($test->get_name(), 'teste');
$this->assertEquals($test->get_description(), 'adasdasdsa');
$this->assertEquals($test->get_default_order(), 'DESC');
$this->assertEquals('draft', $test->get_status());
}
function test_item() {