diff options
Diffstat (limited to 'tests/integration')
-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()); |