diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-06 09:01:34 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-06 09:02:26 +0100 |
commit | 1bacdd19d6aa4760ed65d29eaaa6cd3dfebe6627 (patch) | |
tree | 66fec5137d4e416a7097860ec486a871ebb0504f /tests | |
parent | 0a97b588d0fbb677614961a7b77aed77aa160014 (diff) |
add php server to grunt
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/bootstrap.php | 4 | ||||
-rw-r--r-- | tests/integration/db/ItemMapperTest.php | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/integration/bootstrap.php b/tests/integration/bootstrap.php index 3c3193d3a..b9bbe6179 100644 --- a/tests/integration/bootstrap.php +++ b/tests/integration/bootstrap.php @@ -3,10 +3,6 @@ namespace OCA\News\Tests\Integration; require_once __DIR__ . '/../../../../lib/base.php'; -\OC_App::loadApps(); -\OC_User::setupBackends(); -\OC_Util::setupFS(); - class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { diff --git a/tests/integration/db/ItemMapperTest.php b/tests/integration/db/ItemMapperTest.php index 97956b28d..2b9a0333c 100644 --- a/tests/integration/db/ItemMapperTest.php +++ b/tests/integration/db/ItemMapperTest.php @@ -27,8 +27,11 @@ class ItemMapperTest extends NewsIntegrationTest { $created = $this->itemMapper->insert($item); + var_dump($created); + $fetched = $this->itemMapper->find($created->getId(), $this->userId); + $this->assertEquals($item->getTitle(), $fetched->getTitle()); $this->assertEquals($item->getGuid(), $fetched->getGuid()); $this->assertEquals($item->getGuidHash(), $fetched->getGuidHash()); |