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:
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/Controller/ThemingControllerTest.php40
1 files changed, 20 insertions, 20 deletions
diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php
index 608a03e7bd5..8d38c139624 100644
--- a/apps/theming/tests/Controller/ThemingControllerTest.php
+++ b/apps/theming/tests/Controller/ThemingControllerTest.php
@@ -150,9 +150,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->once())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$this->scssCacher
->expects($this->once())
->method('getCachedSCSS')
@@ -209,9 +209,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$expected = new DataResponse(
[
@@ -240,9 +240,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$expected = new DataResponse(
[
@@ -288,9 +288,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$folder = $this->createMock(ISimpleFolder::class);
$this->appData
@@ -332,9 +332,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$folder = $this->createMock(ISimpleFolder::class);
$this->appData
@@ -393,9 +393,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$file = $this->createMock(ISimpleFile::class);
@@ -469,9 +469,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$file = $this->createMock(ISimpleFile::class);
$folder = $this->createMock(ISimpleFolder::class);
@@ -543,9 +543,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$folder = $this->createMock(ISimpleFolder::class);
$this->appData
@@ -601,9 +601,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$expected = new DataResponse(
[
@@ -640,9 +640,9 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->will($this->returnCallback(function($str) {
+ ->willReturnCallback(function($str) {
return $str;
- }));
+ });
$expected = new DataResponse(
[