summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-06 09:01:34 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-06 09:02:26 +0100
commit1bacdd19d6aa4760ed65d29eaaa6cd3dfebe6627 (patch)
tree66fec5137d4e416a7097860ec486a871ebb0504f /tests
parent0a97b588d0fbb677614961a7b77aed77aa160014 (diff)
add php server to grunt
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/bootstrap.php4
-rw-r--r--tests/integration/db/ItemMapperTest.php3
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());