Skip to content

Commit

Permalink
fixup! [Tests] Refactored PreviewControllerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Oct 23, 2023
1 parent 64a8857 commit cdf411f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ public function testPreview(
): void {
$content = $this->createMock(Content::class);
$location = $this->getMockBuilder(Location::class)
->setConstructorArgs([['id' => $locationId ?? 456]])
->getMockForAbstractClass();
->setConstructorArgs([['id' => $locationId ?? 456]])
->getMockForAbstractClass();

if (null === $locationId) {
$this->locationProvider->method('loadMainLocationByContent')->with($content)->willReturn($location);
Expand Down

0 comments on commit cdf411f

Please sign in to comment.