Skip to content

Commit

Permalink
Removed placeholder test
Browse files Browse the repository at this point in the history
  • Loading branch information
rogyar committed Sep 13, 2018
1 parent a027ae7 commit c53bb4f
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,6 @@ public function testProductSmallImageUrlWithExistingImage()
self::assertTrue($this->checkImageExists($response['products']['items'][0]['small_image']['url']));
}

/**
* small_image_url should contain a placeholder when there's no small image assigned
* to the product
*
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
*/
public function testProductSmallImageUrlWithNoImage()
{
$productSku = 'simple';
$query = <<<QUERY
{
products(filter: {sku: {eq: "{$productSku}"}}) {
items {
small_image {
url
}
}
}
}
QUERY;
$response = $this->graphQlQuery($query);

self::assertArrayHasKey('small_image', $response['products']['items'][0]);
self::assertContains('placeholder/small_image.jpg', $response['products']['items'][0]['small_image']['url']);
self::assertTrue($this->checkImageExists($response['products']['items'][0]['small_image']['url']));
}

/**
* @param string $url
* @return bool
Expand Down

0 comments on commit c53bb4f

Please sign in to comment.