1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-15 13:45:04 -05:00

[fix] returned values with unread status

This commit is contained in:
Nicolas Lœuillet 2014-01-09 15:33:20 +01:00
parent a91ae988ca
commit 7b97b86772
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class ApiTest extends PocheWebTestCase
) )
); );
$this->assertEquals('[{"id":"1","url":"http:\/\/deboutlesgens.com\/blog\/le-courage-de-vivre-consciemment\/","title":"Le courage de vivre consciemment","content":"Test content","updated":null,"status":null,"bookmark":"0","fetched":"1","user_id":"1"}]', $client->getResponse()->getContent()); $this->assertEquals('[{"id":"1","url":"http:\/\/deboutlesgens.com\/blog\/le-courage-de-vivre-consciemment\/","title":"Le courage de vivre consciemment","content":"Test content","updated":null,"status":"unread","bookmark":"0","fetched":"1","user_id":"1"}]', $client->getResponse()->getContent());
} }
@ -72,7 +72,7 @@ class ApiTest extends PocheWebTestCase
) )
); );
$this->assertEquals('[{"id":"1","url":"http:\/\/deboutlesgens.com\/blog\/le-courage-de-vivre-consciemment\/","title":"Le courage de vivre consciemment","content":"Test content","updated":null,"status":null,"bookmark":"0","fetched":"1","user_id":"1"}]', $client->getResponse()->getContent()); $this->assertEquals('[{"id":"1","url":"http:\/\/deboutlesgens.com\/blog\/le-courage-de-vivre-consciemment\/","title":"Le courage de vivre consciemment","content":"Test content","updated":null,"status":"unread","bookmark":"0","fetched":"1","user_id":"1"}]', $client->getResponse()->getContent());
} }

View File

@ -12,6 +12,6 @@ class Fixtures
public static function loadEntries($db) { public static function loadEntries($db) {
$db->query("INSERT INTO entries (id, url, title, content, user_id) values (1, 'http://deboutlesgens.com/blog/le-courage-de-vivre-consciemment/', 'Le courage de vivre consciemment','Test content', 1);"); $db->query("INSERT INTO entries (id, url, title, content, status, user_id) values (1, 'http://deboutlesgens.com/blog/le-courage-de-vivre-consciemment/', 'Le courage de vivre consciemment','Test content', 'unread', 1);");
} }
} }