You are here

public function OutOfStockTest::setUp in Commerce Stock 8

Overrides StockBrowserTestBase::setUp

File

modules/enforcement/tests/src/Functional/OutOfStockTest.php, line 20

Class

OutOfStockTest
Tests out of stock functionality.

Namespace

Drupal\Tests\commerce_stock_enforcement\Functional

Code

public function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this->adminUser);
  $config = \Drupal::configFactory()
    ->getEditable('commerce_stock.service_manager');
  $config
    ->set('default_service_id', 'local_stock');
  $config
    ->save();
  $this
    ->createProduct();
}