summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-07-11 21:05:39 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-07-11 21:05:39 +0200
commit8d739f308b9d986b831099afd5fb00c9f9a91768 (patch)
treee0ab55401963e9eef5f834abf734d9a4c036dbde /tests/lib
parent5b6f5f1a07f6e933f70bd1cd56d364762330ed14 (diff)
downloadnextcloud-server-8d739f308b9d986b831099afd5fb00c9f9a91768.tar.gz
nextcloud-server-8d739f308b9d986b831099afd5fb00c9f9a91768.zip
Some UtilTests require DB
In the current setup there is no DI so no way to mock them.
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/UtilTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php
index c68f8d00a40..33c15565b92 100644
--- a/tests/lib/UtilTest.php
+++ b/tests/lib/UtilTest.php
@@ -29,6 +29,9 @@ class UtilTest extends \Test\TestCase {
$this->assertTrue(is_string($edition));
}
+ /**
+ * @group DB
+ */
function testFormatDate() {
date_default_timezone_set("UTC");
@@ -41,6 +44,9 @@ class UtilTest extends \Test\TestCase {
$this->assertEquals($expected, $result);
}
+ /**
+ * @group DB
+ */
function testFormatDateWithTZ() {
date_default_timezone_set("UTC");
@@ -69,6 +75,7 @@ class UtilTest extends \Test\TestCase {
/**
* @dataProvider formatDateWithTZFromSessionData
+ * @group DB
*/
function testFormatDateWithTZFromSession($offset, $expected, $expectedTimeZone) {
date_default_timezone_set("UTC");
@@ -285,6 +292,7 @@ class UtilTest extends \Test\TestCase {
* Test default apps
*
* @dataProvider defaultAppsProvider
+ * @group DB
*/
function testDefaultApps($defaultAppConfig, $expectedPath, $enabledApps) {
$oldDefaultApps = \OCP\Config::getSystemValue('defaultapp', '');