diff options
Diffstat (limited to 'apps/oauth2/tests/Controller/SettingsControllerTest.php')
-rw-r--r-- | apps/oauth2/tests/Controller/SettingsControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/oauth2/tests/Controller/SettingsControllerTest.php b/apps/oauth2/tests/Controller/SettingsControllerTest.php index 76a4fb55ae6..1a6f20fcf80 100644 --- a/apps/oauth2/tests/Controller/SettingsControllerTest.php +++ b/apps/oauth2/tests/Controller/SettingsControllerTest.php @@ -100,10 +100,10 @@ class SettingsControllerTest extends TestCase { $c->getRedirectUri() === 'https://example.com/' && $c->getSecret() === 'MySecret' && $c->getClientIdentifier() === 'MyClientIdentifier'; - }))->will($this->returnCallback(function (Client $c) { + }))->willReturnCallback(function (Client $c) { $c->setId(42); return $c; - })); + }); $result = $this->settingsController->addClient('My Client Name', 'https://example.com/'); $this->assertInstanceOf(JSONResponse::class, $result); |