Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateProductAttributeEntityFromProductPageTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Fixture\FixtureFactory;
10 use Magento\Mtf\TestCase\Scenario;
11 
31 {
32  /* tags */
33  const MVP = 'yes';
34  /* end tags */
35 
42  public function __prepare(FixtureFactory $fixtureFactory)
43  {
44  $product = $fixtureFactory->createByCode(
45  'catalogProductSimple',
46  ['dataset' => 'product_with_category_with_anchor']
47  );
48  $product->persist();
49  return ['product' => $product];
50  }
51 
57  public function test()
58  {
59  $this->executeScenario();
60  }
61 }