Skip to content

Commit

Permalink
FRW-8773 Added PHPUnit 11 support. (#11131)
Browse files Browse the repository at this point in the history
FRW-8773 Added PHP Unit 11 support.
  • Loading branch information
olhalivitchuk authored Nov 4, 2024
1 parent 0e88b9b commit e2d8da3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function testFilterOauthUserIdentifierWillFilterOutConfiguredKeys(): void
protected function createPermissionPluginMock(): PermissionPluginInterface
{
$mock = $this->getMockBuilder(PermissionPluginInterface::class)
->setMethods(['getKey'])
->onlyMethods(['getKey'])
->getMock();
$mock->method('getKey')
->willReturn(static::PERMISSION_PLUGIN_KEY);
Expand All @@ -113,7 +113,7 @@ protected function createPermissionPluginMock(): PermissionPluginInterface
protected function createPermissionStoragePluginStub(): PermissionStoragePluginInterface
{
$permissionStoragePluginStub = $this->getMockBuilder(PermissionStoragePluginInterface::class)
->setMethods(['getPermissionCollection'])
->onlyMethods(['getPermissionCollection'])
->getMock();
$permissionStoragePluginStub->method('getPermissionCollection')
->willReturn($this->createPermissionCollectionTransfer());
Expand Down Expand Up @@ -145,7 +145,7 @@ protected function getOauthPermissionFacade(): OauthPermissionFacadeInterface
protected function createOauthPermissionConfigMock(): OauthPermissionConfig
{
$mock = $this->getMockBuilder(OauthPermissionConfig::class)
->setMethods(['getOauthUserIdentifierFilterKeys'])
->onlyMethods(['getOauthUserIdentifierFilterKeys'])
->getMock();
$mock->method('getOauthUserIdentifierFilterKeys')
->willReturn($this->getOauthUserIdentifierFilterKeysMock());
Expand Down

0 comments on commit e2d8da3

Please sign in to comment.