From 31975bfab7d8f94ce3d2f438caa50ac21547d655 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 6 Nov 2014 17:07:50 +0100 Subject: more tests --- .travis.yml | 4 +++- tests/integration/db/ItemMapperTest.php | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6763f23e2..1930d2a86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,7 +61,9 @@ script: - php ocular.phar code-coverage:upload --format=php-clover coverage.clover - grunt js-unit # integration tests - - grunt php-integration + - cd .. + - phpunit -c phpunit.integration.xml + - cd js # acceptance tests - webdriver-manager update - sudo chown -R www-data:www-data ../../../data/ diff --git a/tests/integration/db/ItemMapperTest.php b/tests/integration/db/ItemMapperTest.php index f0bac5ced..53ade4c79 100644 --- a/tests/integration/db/ItemMapperTest.php +++ b/tests/integration/db/ItemMapperTest.php @@ -50,6 +50,11 @@ class ItemMapperTest extends NewsIntegrationTest { private function deleteReadOlderThanThreshold() { $this->itemMapper->deleteReadOlderThanThreshold(1); + $this->itemMapper->find($this->items['a title1']->getId(), + $this->userId); + $this->itemMapper->find($this->items['a title2']->getId(), + $this->userId); + $this->itemMapper->find($this->items['a title3']->getId(), $this->userId); $this->itemMapper->find($this->items['del3']->getId(), $this->userId); $this->itemMapper->find($this->items['del4']->getId(), $this->userId); } -- cgit v1.2.3