Skip to content

Commit cbd4f2b

Browse files
committed
add test for soft delete
1 parent 81aca9b commit cbd4f2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/tests.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,9 @@ public function testAddProducts()
794794
public function testSoftDeleteProduct()
795795
{
796796
$test = new API($this);
797-
$test->delete('/products/2');
798-
$test->expect('1');
799-
$test->get('/products/2');
800-
$test->expect('{"id":2,"name":"Laptop","price":"1299.99","properties":{},"created_at":"2013-12-11 10:09:08","deleted_at":"2013-12-11 11:10:09"}');
797+
$test->delete('/products/1,2');
798+
$test->expect('[1,1]');
799+
$test->get('/products?columns=id,deleted_at');
800+
$test->expect('{"products":{"columns":["id","deleted_at"],"records":[[1,"2013-12-11 11:10:09"],[2,"2013-12-11 11:10:09"]]}}');
801801
}
802802
}

0 commit comments

Comments
 (0)