Skip to content

Commit

Permalink
Fixed Unit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sashas777 authored and mageprince committed Jul 9, 2018
1 parent 94e0e25 commit 831e58c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public function testConstructorRequireMergeInterface()
'logger' => $this->logger,
'mergeStrategy' => $this->mergeStrategy,
'assetRepo' => $this->assetRepo,
'versionStorage' => $this->versionStorage,
'assets' => [$this->assetJsOne, $assetUrl],
'versionStorage' => $this->versionStorage,
]);
}

Expand All @@ -121,8 +121,8 @@ public function testConstructorIncompatibleContentTypes()
'logger' => $this->logger,
'mergeStrategy' => $this->mergeStrategy,
'assetRepo' => $this->assetRepo,
'versionStorage' => $this->versionStorage,
'assets' => [$this->assetJsOne, $assetCss],
'versionStorage' => $this->versionStorage,
]);
}

Expand All @@ -137,8 +137,8 @@ public function testIteratorInterfaceMerge()
'logger' => $this->logger,
'mergeStrategy' => $this->mergeStrategy,
'assetRepo' => $this->assetRepo,
'versionStorage' => $this->versionStorage,
'assets' => $assets,
'versionStorage' => $this->versionStorage,
]);

$mergedAsset = $this->createMock(\Magento\Framework\View\Asset\File::class);
Expand Down Expand Up @@ -172,8 +172,8 @@ public function testIteratorInterfaceMergeFailure()
'logger' => $this->logger,
'mergeStrategy' => $this->mergeStrategy,
'assetRepo' => $this->assetRepo,
'versionStorage' => $this->versionStorage,
'assets' => [$this->assetJsOne, $this->assetJsTwo, $assetBroken],
'versionStorage' => $this->versionStorage,
]);

$this->logger->expects($this->once())->method('critical')->with($this->identicalTo($mergeError));
Expand Down

0 comments on commit 831e58c

Please sign in to comment.