protected function PaymentPackTestBase::setUp in Ubercart 8.4
Overrides UbercartBrowserTestBase::setUp
File
- payment/
uc_payment_pack/ tests/ src/ Functional/ PaymentPackTestBase.php, line 20
Class
- PaymentPackTestBase
- Base class for payment method pack tests.
Namespace
Drupal\Tests\uc_payment_pack\FunctionalCode
protected function setUp() {
parent::setUp();
// Log in and add a product to the cart for testing.
$this
->drupalLogin($this->adminUser);
$this
->addToCart($this->product);
// Disable address panes during checkout.
$edit = [
'panes[delivery][status]' => FALSE,
'panes[billing][status]' => FALSE,
];
$this
->drupalGet('admin/store/config/checkout');
$this
->submitForm($edit, 'Save configuration');
}