You are here

public function StockServiceManagerTest::setUp in Commerce Stock 8

Overrides CommerceKernelTestBase::setUp

File

tests/src/Kernel/StockServiceManagerTest.php, line 23

Class

StockServiceManagerTest
@coversDefaultClass \Drupal\commerce_stock\StockServiceManager @group commerce_stock

Namespace

Drupal\Tests\commerce_stock\Kernel

Code

public function setUp() {
  parent::setUp();
  $configFactory = $this->container
    ->get('config.factory');
  $currentStore = $this->container
    ->get('commerce_store.current_store');
  $this->user = $this
    ->createUser();
  $this->stockServiceManager = new StockServiceManager($configFactory, $currentStore, $this->user);
}