aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/setup.php')
-rw-r--r--tests/lib/setup.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/lib/setup.php b/tests/lib/setup.php
index 8373ba316d6..a221943c016 100644
--- a/tests/lib/setup.php
+++ b/tests/lib/setup.php
@@ -19,7 +19,7 @@ class Test_OC_Setup extends \Test\TestCase {
parent::setUp();
$this->config = $this->getMock('\OCP\IConfig');
- $this->setupClass = $this->getMock('\OC_Setup', array('class_exists', 'is_callable'), array($this->config));
+ $this->setupClass = $this->getMock('\OC_Setup', ['class_exists', 'is_callable'], [$this->config]);
}
public function testGetSupportedDatabasesWithOneWorking() {
@@ -102,4 +102,17 @@ class Test_OC_Setup extends \Test\TestCase {
->will($this->returnValue('NotAnArray'));
$this->setupClass->getSupportedDatabases();
}
+
+ /**
+ * This is actual more an integration test whether the version parameter in the .htaccess
+ * was updated as well when the version has been incremented.
+ * If it hasn't this test will fail.
+ */
+ public function testHtaccessIsCurrent() {
+ $result = Test_Helper::invokePrivate(
+ $this->setupClass,
+ 'isCurrentHtaccess'
+ );
+ $this->assertTrue($result);
+ }
} \ No newline at end of file