Skip to content

Commit

Permalink
Remove usage of self::any
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Jun 5, 2023
1 parent f642b32 commit 82f530e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion tests/lib/Backend/EzPlatformBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ protected function setUp(): void

$this->configResolverMock = $this->createMock(ConfigResolverInterface::class);
$this->configResolverMock
->expects(self::any())
->method('getParameter')
->with(self::identicalTo('languages'))
->willReturn(['eng-GB', 'cro-HR']);
Expand Down
1 change: 0 additions & 1 deletion tests/lib/Backend/EzTagsBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ protected function setUp(): void
$this->configResolverMock = $this->createMock(ConfigResolverInterface::class);

$this->configResolverMock
->expects(self::any())
->method('getParameter')
->with(self::identicalTo('languages'))
->willReturn(['eng-GB', 'cro-HR']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ protected function setUp(): void
$this->repositoryMock = $this->createPartialMock(Repository::class, ['sudo', 'getObjectStateService']);

$this->repositoryMock
->expects(self::any())
->method('sudo')
->with(self::anything())
->willReturnCallback(
fn (callable $callback) => $callback($this->repositoryMock),
);

$this->repositoryMock
->expects(self::any())
->method('getObjectStateService')
->willReturn($this->objectStateServiceMock);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ protected function setUp(): void
$this->repositoryMock = $this->createPartialMock(Repository::class, ['sudo', 'getContentService']);

$this->repositoryMock
->expects(self::any())
->method('sudo')
->with(self::anything())
->willReturnCallback(
fn (callable $callback) => $callback($this->repositoryMock),
);

$this->repositoryMock
->expects(self::any())
->method('getContentService')
->willReturn($this->contentServiceMock);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ protected function setUp(): void
$this->repositoryMock = $this->createPartialMock(Repository::class, ['sudo', 'getSectionService']);

$this->repositoryMock
->expects(self::any())
->method('sudo')
->with(self::anything())
->willReturnCallback(
fn (callable $callback) => $callback($this->repositoryMock),
);

$this->repositoryMock
->expects(self::any())
->method('getSectionService')
->willReturn($this->sectionServiceMock);

Expand Down

0 comments on commit 82f530e

Please sign in to comment.