You are here

protected function AjaxTest::setUp in Ubercart 8.4

Overrides UbercartJavascriptTestBase::setUp

File

uc_store/tests/src/FunctionalJavascript/AjaxTest.php, line 38

Class

AjaxTest
Tests Ajax updating of checkout and order pages.

Namespace

Drupal\Tests\uc_store\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this->adminUser);

  // In order to test zone-based conditions, this particular test class
  // assumes that US is enabled and set as the store country.
  Country::load('US')
    ->enable()
    ->save();
  \Drupal::configFactory()
    ->getEditable('uc_store.settings')
    ->set('address.country', 'US')
    ->save();
}