summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-06 10:25:30 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-06 10:25:30 +0100
commit2a601bc35b26599fb08f4f6a748caee52bedf1a5 (patch)
treedb45cf3a60a98ccbfff66bb1008ff7e4c81d4abf
parentc9f46e2e3caa20d597315cd2fa85b0cce15c4c3b (diff)
enable other dbs for test suite
-rw-r--r--.travis.yml5
-rw-r--r--js/Gruntfile.js7
-rw-r--r--tests/integration/db/ItemMapperTest.php2
3 files changed, 11 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index e5b14ea3d..7a4b682f8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,9 +6,8 @@ php:
env:
- DB=sqlite
- # enable if there are tests for it
- # - DB=postgresql
- # - DB=mysql
+ - DB=postgresql
+ - DB=mysql
before_install:
# get a newer node.js version
diff --git a/js/Gruntfile.js b/js/Gruntfile.js
index e7d7398cc..2f95aa5c3 100644
--- a/js/Gruntfile.js
+++ b/js/Gruntfile.js
@@ -153,6 +153,12 @@ module.exports = function (grunt) {
'../**/*.php'
],
tasks: ['phpunit:unit']
+ },
+ phpintegration: {
+ files: [
+ '../**/*.php'
+ ],
+ tasks: ['phpunit:integration']
}
},
karma: {
@@ -225,6 +231,7 @@ module.exports = function (grunt) {
grunt.registerTask('dev', ['watch:concat']);
grunt.registerTask('dev-js-unit', ['karma:unit']);
grunt.registerTask('dev-php-unit', ['watch:phpunit']);
+ grunt.registerTask('dev-php-integration', ['watch:phpintegration']);
grunt.registerTask('js-unit', ['default', 'karma:continuous']);
grunt.registerTask('php-unit', ['phpunit:coverageUnit']);
diff --git a/tests/integration/db/ItemMapperTest.php b/tests/integration/db/ItemMapperTest.php
index 61ea33e47..1ae0d117d 100644
--- a/tests/integration/db/ItemMapperTest.php
+++ b/tests/integration/db/ItemMapperTest.php
@@ -63,6 +63,7 @@ class ItemMapperTest extends NewsIntegrationTest {
$item->setGuid('test');
$item->setFeedId(3);
$item->setUnread();
+ $item->setBody('Döner');
$created = $this->itemMapper->insert($item);
@@ -73,6 +74,7 @@ class ItemMapperTest extends NewsIntegrationTest {
$this->assertEquals($item->getGuidHash(), $fetched->getGuidHash());
$this->assertEquals($item->getFeedId(), $fetched->getFeedId());
$this->assertEquals($item->isRead(), $fetched->isRead());
+ $this->assertEquals('Döner', $fetched->getBody());
}
} \ No newline at end of file