diff --git a/app/code/Magento/Deploy/Test/Unit/Service/DeployStaticContentTest.php b/app/code/Magento/Deploy/Test/Unit/Service/DeployStaticContentTest.php index c42d503206b03..3d263c7a0a69f 100644 --- a/app/code/Magento/Deploy/Test/Unit/Service/DeployStaticContentTest.php +++ b/app/code/Magento/Deploy/Test/Unit/Service/DeployStaticContentTest.php @@ -125,9 +125,7 @@ public function testDeploy($options, $expectedContentVersion) $package->expects($this->exactly(3))->method('getTheme')->willReturn('theme'); $package->expects($this->exactly(2))->method('getLocale')->willReturn('locale'); } - $packages = [ - 'package' => $package - ]; + $packages = ['package' => $package]; if ($expectedContentVersion) { $this->versionStorage->expects($this->once())->method('save')->with($expectedContentVersion); @@ -150,7 +148,6 @@ public function testDeploy($options, $expectedContentVersion) ->getMockForAbstractClass(); if ($options['refresh-content-version-only']) { $strategy->expects($this->never())->method('deploy'); - $this->deployStrategyFactory->expects($this->never())->method('create'); } else { $strategy->expects($this->once())->method('deploy') ->with($options) @@ -201,18 +198,11 @@ public function testDeploy($options, $expectedContentVersion) $this->objectManager->expects($this->exactly(1)) ->method('get') - ->withConsecutive( - [MinifyTemplates::class] - ) - ->willReturnOnConsecutiveCalls( - $minifyTemplates - ); + ->withConsecutive([MinifyTemplates::class]) + ->willReturnOnConsecutiveCalls($minifyTemplates); } - $this->assertEquals( - null, - $this->service->deploy($options) - ); + $this->assertEquals(null, $this->service->deploy($options)); } public function deployDataProvider()