From 1bacdd19d6aa4760ed65d29eaaa6cd3dfebe6627 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 6 Nov 2014 09:01:34 +0100 Subject: add php server to grunt --- tests/integration/bootstrap.php | 4 ---- tests/integration/db/ItemMapperTest.php | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') 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()); -- cgit v1.2.3