Skip to content

Commit 254befc

Browse files
committed
Update test
1 parent 4a28a52 commit 254befc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/tests/Controller/SettingsPageActionTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ public function testPage(): void
5252

5353
/** @var AuthorizationManager */
5454
$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)
55+
->shouldReceive('checkAccess')->with($user, 'uri_account_settings', Mockery::andAnyOtherArgs())->times(2)->andReturn(true) // Once from the template !
5756
->shouldReceive('checkAccess')->with($user, 'update_account_settings')->once()->andReturn(true)
5857
->getMock();
5958
$this->ci->set(AuthorizationManager::class, $authorizer);

0 commit comments

Comments
 (0)