diff options
-rw-r--r-- | tests/integration/db/ItemMapperTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/integration/db/ItemMapperTest.php b/tests/integration/db/ItemMapperTest.php index 0f5f15318..a36b1db9e 100644 --- a/tests/integration/db/ItemMapperTest.php +++ b/tests/integration/db/ItemMapperTest.php @@ -79,10 +79,11 @@ class ItemMapperTest extends IntegrationTest { */ public function testDeleteOlderThanThresholdOne() { $this->loadFixtures('default'); + $id = $this->whereTitleId('del1'); $this->deleteReadOlderThanThreshold(); - $this->itemMapper->find($this->whereTitleId('del1'), $this->user); + $this->itemMapper->find($id, $this->user); } /** @@ -90,10 +91,11 @@ class ItemMapperTest extends IntegrationTest { */ public function testDeleteOlderThanThresholdTwo() { $this->loadFixtures('default'); + $id = $this->whereTitleId('del2'); $this->deleteReadOlderThanThreshold(); - $this->itemMapper->find($this->whereTitleId('del2'), $this->user); + $this->itemMapper->find($id, $this->user); } |