diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-06 14:45:14 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-06 14:45:14 +0100 |
commit | dcf96e729991764e5dc5d5d9cc384540427dfdc4 (patch) | |
tree | ce4778585cdcd6f96ca5723e599ac718565a9d23 /tests/integration/bootstrap.php | |
parent | 5395685b0556921bc87ccc7e4076caabd16f0bcf (diff) |
more integration tests
Diffstat (limited to 'tests/integration/bootstrap.php')
-rw-r--r-- | tests/integration/bootstrap.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/integration/bootstrap.php b/tests/integration/bootstrap.php index 8096cbacd..815913e3a 100644 --- a/tests/integration/bootstrap.php +++ b/tests/integration/bootstrap.php @@ -78,7 +78,7 @@ class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { if (array_key_exists($feed['title'], $items)) { foreach ($items[$feed['title']] as $item) { $item['feedId'] = $newFeed->getId(); - $this->items[$item->getTitle()] = + $this->items[$item['title']] = $this->createItem($item); } } @@ -95,7 +95,7 @@ class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { if (array_key_exists($feed['title'], $items)) { foreach ($items[$feed['title']] as $item) { $item['feedId'] = $newFeed->getId(); - $this->items[$item->getTitle()] = + $this->items[$item['title']] = $this->createItem($item); } } @@ -147,13 +147,13 @@ class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { $newItem->setLastModified($item['lastModified']); $newItem->setEnclosureMime($item['enclosureMime']); $newItem->setEnclosureLink($item['enclosureLink']); - return $this->itemMapper->insert($item); + return $this->itemMapper->insert($newItem); } protected function whenOlderThan($olderThan, $callback) { $ocVersion = $this->ownCloudVersion; - if (version_compare(implode('.', $ocVersion), $olderThan, '<=')) { + if (version_compare(implode('.', $ocVersion), $olderThan, '<')) { $callback(); } } |