From add549b8818247ede6e2daae76bc819e98ae0ce1 Mon Sep 17 00:00:00 2001 From: Jacson Passold Date: Tue, 28 Aug 2018 00:19:55 -0300 Subject: [PATCH] fix item comment open test --- tests/test-items.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-items.php b/tests/test-items.php index 818365dff..2c4ffeb8b 100644 --- a/tests/test-items.php +++ b/tests/test-items.php @@ -279,7 +279,7 @@ class Items extends TAINACAN_UnitTestCase { 'collection', array( 'name' => 'collectionComments', - 'comment_status' => 'closed' + 'allow_comments' => 'closed' ), true, true @@ -303,8 +303,8 @@ class Items extends TAINACAN_UnitTestCase { $this->assertFalse(comments_open($item->get_id())); $collections = \Tainacan\Repositories\Collections::get_instance(); - $collection->set('comment_status', 'open'); - $collection->validate(); + $collection->set('allow_comments', 'open'); + $this->assertTrue($collection->validate()); $collections->update($collection); $this->assertTrue(comments_open($item->get_id())); @@ -312,7 +312,7 @@ class Items extends TAINACAN_UnitTestCase { $items = \Tainacan\Repositories\Items::get_instance(); $item->set('comment_status', 'closed'); - $item->validate(); + $this->assertTrue($item->validate()); $items->update($item); $this->assertFalse(comments_open($item->get_id()));