|
11 | 11 | use Magento\Catalog\Test\Page\Category\CatalogCategoryView;
|
12 | 12 | use Magento\Mtf\Client\BrowserInterface;
|
13 | 13 | use Magento\Mtf\Constraint\AbstractConstraint;
|
14 |
| -use Magento\Mtf\Fixture\FixtureFactory; |
15 | 14 |
|
16 | 15 | /**
|
17 | 16 | * Assert that displayed category data on category page equals to passed from fixture.
|
@@ -46,48 +45,23 @@ class AssertCategoryPage extends AbstractConstraint
|
46 | 45 | * Assert that displayed category data on category page equals to passed from fixture.
|
47 | 46 | *
|
48 | 47 | * @param Category $category
|
49 |
| - * @param FixtureFactory $fixtureFactory |
50 | 48 | * @param CatalogCategoryView $categoryView
|
51 | 49 | * @param BrowserInterface $browser
|
52 | 50 | * @return void
|
53 | 51 | */
|
54 | 52 | public function processAssert(
|
55 | 53 | Category $category,
|
56 |
| - FixtureFactory $fixtureFactory, |
57 | 54 | CatalogCategoryView $categoryView,
|
58 | 55 | BrowserInterface $browser
|
59 | 56 | ) {
|
60 | 57 | $this->browser = $browser;
|
61 | 58 | $this->categoryViewPage = $categoryView;
|
62 |
| - $this->prepareData($fixtureFactory, $category); |
63 | 59 | $this->browser->open($this->getCategoryUrl($category));
|
| 60 | + |
64 | 61 | $this->assertGeneralInformation($category);
|
65 | 62 | $this->assertDisplaySetting($category);
|
66 | 63 | }
|
67 | 64 |
|
68 |
| - /** |
69 |
| - * Prepare comparison data. |
70 |
| - * |
71 |
| - * @param FixtureFactory $fixtureFactory |
72 |
| - * @param Category $category |
73 |
| - * @return void |
74 |
| - */ |
75 |
| - protected function prepareData(FixtureFactory $fixtureFactory, Category $category) |
76 |
| - { |
77 |
| - $product = $fixtureFactory->createByCode( |
78 |
| - 'catalogProductSimple', |
79 |
| - [ |
80 |
| - 'dataset' => 'default', |
81 |
| - 'data' => [ |
82 |
| - 'category_ids' => [ |
83 |
| - 'category' => $category, |
84 |
| - ], |
85 |
| - ] |
86 |
| - ] |
87 |
| - ); |
88 |
| - $product->persist(); |
89 |
| - } |
90 |
| - |
91 | 65 | /**
|
92 | 66 | * Get category url to open.
|
93 | 67 | *
|
|
0 commit comments