From 32cab8ed69e3d197108ca24533c42aeb292215ba Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 2 May 2014 22:11:14 +0200 Subject: also validate database types --- tests/unit/config/AppConfigTest.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/config/AppConfigTest.php b/tests/unit/config/AppConfigTest.php index 7ee533e8b..8f91dd338 100644 --- a/tests/unit/config/AppConfigTest.php +++ b/tests/unit/config/AppConfigTest.php @@ -42,7 +42,7 @@ class AppConfigTest extends \PHPUnit_Framework_TestCase { $installedExtensions = array( 'curl' => '4.3' ); - $databaseType = 'postgresql'; + $databaseType = 'oracle'; $this->config = new AppConfig($this->nav, $this->l10n, $this->url, $phpVersion, $ownCloudVersion, $installedApps, @@ -228,4 +228,17 @@ class AppConfigTest extends \PHPUnit_Framework_TestCase { )); $this->config->testDependencies(); } + + + /** + * @expectedException \OCA\News\Config\DependencyException + */ + public function testSupportedDb() { + $this->config->loadConfig(array( + 'databases' => array( + 'pgsql', 'sqlite' + ) + )); + $this->config->testDependencies(); + } } \ No newline at end of file -- cgit v1.2.3