diff options
Diffstat (limited to 'apps/settings/tests/Middleware/SubadminMiddlewareTest.php')
-rw-r--r-- | apps/settings/tests/Middleware/SubadminMiddlewareTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/settings/tests/Middleware/SubadminMiddlewareTest.php b/apps/settings/tests/Middleware/SubadminMiddlewareTest.php index 4b48ec74b81..8b40f002c32 100644 --- a/apps/settings/tests/Middleware/SubadminMiddlewareTest.php +++ b/apps/settings/tests/Middleware/SubadminMiddlewareTest.php @@ -72,7 +72,7 @@ class SubadminMiddlewareTest extends \Test\TestCase { ->expects($this->once()) ->method('hasAnnotation') ->with('NoSubadminRequired') - ->will($this->returnValue(false)); + ->willReturn(false); $this->subadminMiddleware->beforeController($this->controller, 'foo'); } @@ -82,7 +82,7 @@ class SubadminMiddlewareTest extends \Test\TestCase { ->expects($this->once()) ->method('hasAnnotation') ->with('NoSubadminRequired') - ->will($this->returnValue(true)); + ->willReturn(true); $this->subadminMiddleware->beforeController($this->controller, 'foo'); } @@ -91,7 +91,7 @@ class SubadminMiddlewareTest extends \Test\TestCase { ->expects($this->once()) ->method('hasAnnotation') ->with('NoSubadminRequired') - ->will($this->returnValue(false)); + ->willReturn(false); $this->subadminMiddlewareAsSubAdmin->beforeController($this->controller, 'foo'); } @@ -100,7 +100,7 @@ class SubadminMiddlewareTest extends \Test\TestCase { ->expects($this->once()) ->method('hasAnnotation') ->with('NoSubadminRequired') - ->will($this->returnValue(true)); + ->willReturn(true); $this->subadminMiddlewareAsSubAdmin->beforeController($this->controller, 'foo'); } |