9 use Magento\Catalog\Test\Page\Product\CatalogProductView;
10 use Magento\Mtf\Client\BrowserInterface;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 use Magento\Mtf\Fixture\FixtureInterface;
33 CatalogProductView $catalogProductView,
34 BrowserInterface $browser,
37 $browser->open($_ENV[
'app_frontend_url'] .
$product->getUrlKey() .
'.html');
38 \PHPUnit\Framework\Assert::assertEquals(
39 self::STOCK_AVAILABILITY,
40 $catalogProductView->getViewBlock()->stockAvailability(),
41 'Control \'' . self::STOCK_AVAILABILITY .
'\' is not visible.
' 50 public function toString() 52 return 'Out of stock control is visible.
';
processAssert(CatalogProductView $catalogProductView, BrowserInterface $browser, FixtureInterface $product)