Exemplo n.º 1
0
 public function testGetUrlNoSelection()
 {
     $this->testSetBaseNoSelectionFile();
     $this->repository->expects($this->once())->method('getUrl')->will($this->returnValue('someurl'));
     $this->assertEquals('someurl', $this->image->getUrl());
 }
Exemplo n.º 2
0
 /**
  * @param \Magento\Catalog\Model\Product\Image $model
  * @depends testSetBaseFilePlaceholder
  */
 public function testGetUrlPlaceholder($model)
 {
     $this->assertStringMatchesFormat('http://localhost/pub/static/frontend/%s/Magento_Catalog/images/product/placeholder/image.jpg', $model->getUrl());
 }