From 2a601bc35b26599fb08f4f6a748caee52bedf1a5 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 6 Nov 2014 10:25:30 +0100 Subject: enable other dbs for test suite --- .travis.yml | 5 ++--- js/Gruntfile.js | 7 +++++++ tests/integration/db/ItemMapperTest.php | 2 ++ 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 -- cgit v1.2.3