You are here

protected function RoleCheckoutTest::setUp in Ubercart 8.4

Overrides UbercartBrowserTestBase::setUp

File

uc_role/tests/src/Functional/RoleCheckoutTest.php, line 31

Class

RoleCheckoutTest
Tests role assignment upon checkout.

Namespace

Drupal\Tests\uc_role\Functional

Code

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

  // Create a simple customer user account.
  $this->customer = $this
    ->drupalCreateUser();

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