diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-06 17:07:50 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-06 17:07:50 +0100 |
commit | 31975bfab7d8f94ce3d2f438caa50ac21547d655 (patch) | |
tree | 88d3f14c847073de06478d191b9109f68c4b7a84 | |
parent | 620b1f5407ad57ff6aaf68e6e832bfa1407b1e58 (diff) |
more tests
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | tests/integration/db/ItemMapperTest.php | 5 |
2 files changed, 8 insertions, 1 deletions
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); } |