Exemplo n.º 1
0
 /**
  * @dataProvider dataForFullPath
  */
 public function testGetSwatchAttributeImage($swatchType, $expectedResult)
 {
     $this->storeManagerMock->expects($this->once())->method('getStore')->willReturn($this->storeMock);
     $this->storeMock->expects($this->once())->method('getBaseUrl')->with('media')->willReturn('http://url/pub/media/');
     $this->generateImageConfig();
     $this->testGenerateSwatchVariations();
     $result = $this->mediaHelperObject->getSwatchAttributeImage($swatchType, '/f/i/file.png');
     $this->assertEquals($result, $expectedResult);
 }