10 use Magento\Catalog\Test\Page\Category\CatalogCategoryView;
11 use Magento\Mtf\Client\BrowserInterface;
12 use Magento\Mtf\Constraint\AbstractConstraint;
13 use Magento\Mtf\Fixture\FixtureFactory;
30 FixtureFactory $fixtureFactory,
31 BrowserInterface $browser,
32 CatalogCategoryView $categoryView,
38 'dataset' =>
'custom_new_group',
40 'root_category_id' => [
41 'category' =>
$category->getDataFieldConfig(
'parent_id')[
'source']->getParentCategory()
47 $store = $fixtureFactory->createByCode(
50 'dataset' =>
'custom_store',
61 $browser->open($_ENV[
'app_frontend_url'] .
'websites/' .
$websiteCode .
'/' .
$category->getName() .
'.html');
62 \PHPUnit\Framework\Assert::assertEquals(
64 $categoryView->getTitleBlock()->getTitle(),
65 'Wrong category name is displayed on custom website store.' 76 return 'Category name is correct on custom website store.';
processAssert(FixtureFactory $fixtureFactory, BrowserInterface $browser, CatalogCategoryView $categoryView, Category $category)
if(!isset($_GET['website_code'])) $websiteCode