diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-30 21:06:14 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-17 18:18:39 +0100 |
commit | e5d606d3ee7dc046e7db9eb1f94b6cc6e542ecbe (patch) | |
tree | 33cbe6f12c02ceb549bbf860e8d8bc98bfeecfff /tests | |
parent | 2bbd1e10a8a315c715095eed6536b6b319aeb974 (diff) |
more fixes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/db/ItemMapperTest.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/integration/db/ItemMapperTest.php b/tests/integration/db/ItemMapperTest.php index 9e2cc2a31..948b843de 100644 --- a/tests/integration/db/ItemMapperTest.php +++ b/tests/integration/db/ItemMapperTest.php @@ -131,7 +131,7 @@ class ItemMapperTest extends IntegrationTest { public function testReadFolder () { $this->loadFixtures('default'); - $folderId = $this->folders['first folder']->getId(); + $folderId = $this->findFolderByName('first folder')->getId(); $this->itemMapper->readFolder( $folderId, PHP_INT_MAX, 10, $this->user ); @@ -143,17 +143,17 @@ class ItemMapperTest extends IntegrationTest { $this->assertEquals(1, count($items)); - $item = $this->items['a title1']; + $item = $this->findItemByTitle('a title1'); $item = $this->itemMapper->find($item->getId(), $this->user); $this->assertEquals(10, $item->getLastModified()); - $item = $this->items['a title3']; + $item = $this->findItemByTitle('a title3'); $item = $this->itemMapper->find($item->getId(), $this->user); $this->assertEquals(10, $item->getLastModified()); - $item = $this->items['a title9']; + $item = $this->findItemByTitle('a title9'); $item = $this->itemMapper->find($item->getId(), $this->user); $this->assertTrue($item->isUnread()); @@ -163,7 +163,7 @@ class ItemMapperTest extends IntegrationTest { public function testReadFeed () { $this->loadFixtures('default'); - $feedId = $this->feeds['third feed']->getId(); + $feedId = $this->findFeedByTitle('third feed')->getId(); $this->itemMapper->readFeed( $feedId, PHP_INT_MAX, 10, $this->user ); @@ -175,17 +175,17 @@ class ItemMapperTest extends IntegrationTest { $this->assertEquals(2, count($items)); - $item = $this->items['a title9']; + $item = $this->findItemByTitle('a title9'); $item = $this->itemMapper->find($item->getId(), $this->user); $this->assertEquals(10, $item->getLastModified()); - $item = $this->items['a title3']; + $item = $this->findItemByTitle('a title3'); $item = $this->itemMapper->find($item->getId(), $this->user); $this->assertTrue($item->isUnread()); - $item = $this->items['a title1']; + $item = $this->findItemByTitle('a title1'); $item = $this->itemMapper->find($item->getId(), $this->user); $this->assertTrue($item->isUnread()); } |