summaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/Log/ManageTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Core/Command/Log/ManageTest.php')
-rw-r--r--tests/Core/Command/Log/ManageTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Core/Command/Log/ManageTest.php b/tests/Core/Command/Log/ManageTest.php
index d73bc7ed9c2..cae6293abd1 100644
--- a/tests/Core/Command/Log/ManageTest.php
+++ b/tests/Core/Command/Log/ManageTest.php
@@ -53,9 +53,9 @@ class ManageTest extends TestCase {
public function testChangeBackend() {
$this->consoleInput->method('getOption')
- ->will($this->returnValueMap([
+ ->willReturnMap([
['backend', 'syslog']
- ]));
+ ]);
$this->config->expects($this->once())
->method('setSystemValue')
->with('log_type', 'syslog');
@@ -65,9 +65,9 @@ class ManageTest extends TestCase {
public function testChangeLevel() {
$this->consoleInput->method('getOption')
- ->will($this->returnValueMap([
+ ->willReturnMap([
['level', 'debug']
- ]));
+ ]);
$this->config->expects($this->once())
->method('setSystemValue')
->with('loglevel', 0);
@@ -77,9 +77,9 @@ class ManageTest extends TestCase {
public function testChangeTimezone() {
$this->consoleInput->method('getOption')
- ->will($this->returnValueMap([
+ ->willReturnMap([
['timezone', 'UTC']
- ]));
+ ]);
$this->config->expects($this->once())
->method('setSystemValue')
->with('logtimezone', 'UTC');