Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AppConfig.php
Go to the documentation of this file.
1 <?php
8 
11 
15 class AppConfig
16 {
20  private $testAppConfig;
21 
32  public function startTest(\PHPUnit\Framework\TestCase $test)
33  {
34  $this->getTestAppConfig()->clean();
35  }
36 
42  private function getTestAppConfig()
43  {
44  if (!$this->testAppConfig) {
45  $this->testAppConfig = ObjectManager::getInstance()->get(Config::class);
46  }
47 
48  return $this->testAppConfig;
49  }
50 }
startTest(\PHPUnit\Framework\TestCase $test)
Definition: AppConfig.php:32