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 0f22c60 commit d41a3a7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion tests/lib/Backend/NetgenTagsBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,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 @@ -34,15 +34,13 @@ protected function setUp(): void
$this->objectStateServiceMock = $this->createMock(ObjectStateService::class);

$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 @@ -33,15 +33,13 @@ protected function setUp(): void
$this->contentServiceMock = $this->createMock(ContentService::class);

$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 @@ -33,15 +33,13 @@ protected function setUp(): void
$this->sectionServiceMock = $this->createMock(SectionService::class);

$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 d41a3a7

Please sign in to comment.