Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ShoppingCartPagerTest.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Mtf\TestCase\Scenario;
11 use Magento\Mtf\Fixture\FixtureFactory;
12 
27 class ShoppingCartPagerTest extends Scenario
28 {
29  /* tags */
30  const MVP = 'yes';
31  const SEVERITY = 'S2';
32  /* end tags */
33 
40  public function __prepare(FixtureFactory $fixtureFactory)
41  {
42  $products = [];
43  for ($i = 1; $i <= 20; $i++) {
44  $products[$i] = $fixtureFactory->createByCode('catalogProductSimple', ['dataset' => 'default']);
45  $products[$i]->persist();
46  }
47 
48  return ['preconditionProducts' => $products];
49  }
50 
56  public function test()
57  {
58  $this->executeScenario();
59  }
60 }
$i
Definition: gallery.phtml:31