You are here

protected function StockTest::setUp in Ubercart 8.4

Overrides UbercartBrowserTestBase::setUp

File

uc_stock/tests/src/Functional/StockTest.php, line 27

Class

StockTest
Tests the stock control functionality.

Namespace

Drupal\Tests\uc_stock\Functional

Code

protected function setUp() {
  parent::setUp();

  // Need page_title_block because we test page titles.
  $this
    ->drupalPlaceBlock('page_title_block');

  // Ensure test mails are logged.
  \Drupal::configFactory()
    ->getEditable('system.mail')
    ->set('interface.uc_stock', 'test_mail_collector')
    ->save();
  $this
    ->drupalLogin($this->adminUser);
}