Skip to content

Commit c252ae1

Browse files
committed
MAGETWO-63209: Fatal error on category page when changing display mode with flat category on
1 parent 5a51679 commit c252ae1

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryPage.php

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Magento\Catalog\Test\Page\Category\CatalogCategoryView;
1212
use Magento\Mtf\Client\BrowserInterface;
1313
use Magento\Mtf\Constraint\AbstractConstraint;
14-
use Magento\Mtf\Fixture\FixtureFactory;
1514

1615
/**
1716
* Assert that displayed category data on category page equals to passed from fixture.
@@ -46,48 +45,23 @@ class AssertCategoryPage extends AbstractConstraint
4645
* Assert that displayed category data on category page equals to passed from fixture.
4746
*
4847
* @param Category $category
49-
* @param FixtureFactory $fixtureFactory
5048
* @param CatalogCategoryView $categoryView
5149
* @param BrowserInterface $browser
5250
* @return void
5351
*/
5452
public function processAssert(
5553
Category $category,
56-
FixtureFactory $fixtureFactory,
5754
CatalogCategoryView $categoryView,
5855
BrowserInterface $browser
5956
) {
6057
$this->browser = $browser;
6158
$this->categoryViewPage = $categoryView;
62-
$this->prepareData($fixtureFactory, $category);
6359
$this->browser->open($this->getCategoryUrl($category));
60+
6461
$this->assertGeneralInformation($category);
6562
$this->assertDisplaySetting($category);
6663
}
6764

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-
9165
/**
9266
* Get category url to open.
9367
*

0 commit comments

Comments
 (0)