Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ApplyMapTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\TestCase\Injectable;
10 
19 class ApplyMapTest extends Injectable
20 {
21  /* tags */
22  const MVP = 'yes';
23  const TEST_TYPE = 'acceptance_test, extended_acceptance_test';
24  /* end tags */
25 
32  public function test($product)
33  {
34  // Preconditions
35  $this->objectManager->create(
36  \Magento\Config\Test\TestStep\SetupConfigurationStep::class,
37  ['configData' => 'msrp']
38  )->run();
39  $product = $this->objectManager->create(
40  \Magento\Catalog\Test\TestStep\CreateProductStep::class,
41  ['product' => $product]
42  )->run();
43 
44  return $product;
45  }
46 
52  public function tearDown()
53  {
54  $this->objectManager->create(
55  \Magento\Config\Test\TestStep\SetupConfigurationStep::class,
56  ['configData' => 'msrp', 'rollback' => true]
57  )->run();
58  }
59 }