We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a28a52 commit 254befcCopy full SHA for 254befc
1 file changed
app/tests/Controller/SettingsPageActionTest.php
@@ -52,8 +52,7 @@ public function testPage(): void
52
53
/** @var AuthorizationManager */
54
$authorizer = Mockery::mock(AuthorizationManager::class)
55
- ->shouldReceive('checkAccess')->with($user, 'uri_account_settings', [])->once()->andReturn(true) // From the template !
56
- ->shouldReceive('checkAccess')->with($user, 'uri_account_settings')->once()->andReturn(true)
+ ->shouldReceive('checkAccess')->with($user, 'uri_account_settings', Mockery::andAnyOtherArgs())->times(2)->andReturn(true) // Once from the template !
57
->shouldReceive('checkAccess')->with($user, 'update_account_settings')->once()->andReturn(true)
58
->getMock();
59
$this->ci->set(AuthorizationManager::class, $authorizer);
0 commit comments