Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractCatalogRuleEntityTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\PageCache\Test\Page\Adminhtml\AdminCache;
10 use Magento\CatalogRule\Test\Page\Adminhtml\CatalogRuleIndex;
11 use Magento\CatalogRule\Test\Page\Adminhtml\CatalogRuleNew;
12 use Magento\Mtf\Fixture\FixtureFactory;
13 use Magento\Mtf\TestCase\Injectable;
14 
18 abstract class AbstractCatalogRuleEntityTest extends Injectable
19 {
25  protected $catalogRuleIndex;
26 
32  protected $catalogRuleNew;
33 
39  protected $adminCache;
40 
46  protected $fixtureFactory;
47 
57  public function __inject(
58  CatalogRuleIndex $catalogRuleIndex,
59  CatalogRuleNew $catalogRuleNew,
60  AdminCache $adminCache,
61  FixtureFactory $fixtureFactory
62  ) {
63  $this->catalogRuleIndex = $catalogRuleIndex;
64  $this->catalogRuleNew = $catalogRuleNew;
65  $this->adminCache = $adminCache;
66  $this->fixtureFactory = $fixtureFactory;
67  }
68 
74  public function tearDown()
75  {
76  $this->objectManager->create(\Magento\CatalogRule\Test\TestStep\DeleteAllCatalogRulesStep::class)->run();
77  }
78 }
__inject(CatalogRuleIndex $catalogRuleIndex, CatalogRuleNew $catalogRuleNew, AdminCache $adminCache, FixtureFactory $fixtureFactory)