Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-14 18:24:43 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-20 20:20:51 +0300
commit4f0a318e02db1fcc5769049e7eff5da5493d865a (patch)
tree7aa221813609fe131b370f0923c1b23905384513 /apps/theming/tests
parent80efb51a1a7a0e00fc26302388d7b95b28c60208 (diff)
Fixed theming tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/Controller/ThemingControllerTest.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php
index 360eb7083a4..a2105264f10 100644
--- a/apps/theming/tests/Controller/ThemingControllerTest.php
+++ b/apps/theming/tests/Controller/ThemingControllerTest.php
@@ -151,20 +151,20 @@ class ThemingControllerTest extends TestCase {
$this->scssCacher
->expects($this->once())
->method('getCachedSCSS')
- ->with('core', '/core/css/server.scss')
- ->willReturn('/core/css/someHash-server.scss');
+ ->with('core', '/core/css/css-variables.scss')
+ ->willReturn('/core/css/someHash-css-variables.scss');
$this->urlGenerator
->expects($this->once())
->method('linkTo')
- ->with('', '/core/css/someHash-server.scss')
- ->willReturn('/nextcloudWebroot/core/css/someHash-server.scss');
+ ->with('', '/core/css/someHash-css-variables.scss')
+ ->willReturn('/nextcloudWebroot/core/css/someHash-css-variables.scss');
$expected = new DataResponse(
[
'data' =>
[
'message' => $message,
- 'serverCssUrl' => '/nextcloudWebroot/core/css/someHash-server.scss',
+ 'serverCssUrl' => '/nextcloudWebroot/core/css/someHash-css-variables.scss',
],
'status' => 'success',
]
@@ -604,13 +604,13 @@ class ThemingControllerTest extends TestCase {
$this->scssCacher
->expects($this->once())
->method('getCachedSCSS')
- ->with('core', '/core/css/server.scss')
- ->willReturn('/core/css/someHash-server.scss');
+ ->with('core', '/core/css/css-variables.scss')
+ ->willReturn('/core/css/someHash-css-variables.scss');
$this->urlGenerator
->expects($this->once())
->method('linkTo')
- ->with('', '/core/css/someHash-server.scss')
- ->willReturn('/nextcloudWebroot/core/css/someHash-server.scss');
+ ->with('', '/core/css/someHash-css-variables.scss')
+ ->willReturn('/nextcloudWebroot/core/css/someHash-css-variables.scss');
$expected = new DataResponse(
[
@@ -618,7 +618,7 @@ class ThemingControllerTest extends TestCase {
[
'value' => 'MyValue',
'message' => 'Saved',
- 'serverCssUrl' => '/nextcloudWebroot/core/css/someHash-server.scss',
+ 'serverCssUrl' => '/nextcloudWebroot/core/css/someHash-css-variables.scss',
],
'status' => 'success'
]
@@ -648,13 +648,13 @@ class ThemingControllerTest extends TestCase {
$this->scssCacher
->expects($this->once())
->method('getCachedSCSS')
- ->with('core', '/core/css/server.scss')
- ->willReturn('/core/css/someHash-server.scss');
+ ->with('core', '/core/css/css-variables.scss')
+ ->willReturn('/core/css/someHash-css-variables.scss');
$this->urlGenerator
->expects($this->once())
->method('linkTo')
- ->with('', '/core/css/someHash-server.scss')
- ->willReturn('/nextcloudWebroot/core/css/someHash-server.scss');
+ ->with('', '/core/css/someHash-css-variables.scss')
+ ->willReturn('/nextcloudWebroot/core/css/someHash-css-variables.scss');
$this->imageManager->expects($this->once())
->method('delete')
->with($filename);
@@ -665,7 +665,7 @@ class ThemingControllerTest extends TestCase {
[
'value' => $value,
'message' => 'Saved',
- 'serverCssUrl' => '/nextcloudWebroot/core/css/someHash-server.scss',
+ 'serverCssUrl' => '/nextcloudWebroot/core/css/someHash-css-variables.scss',
],
'status' => 'success'
]