protected function CommerceBrowserTestBase::setUp in Commerce Core 8.2
Overrides BrowserTestBase::setUp
9 calls to CommerceBrowserTestBase::setUp()
- CheckoutOrderTest::setUp in modules/
checkout/ tests/ src/ Functional/ CheckoutOrderTest.php - CouponTest::setUp in modules/
promotion/ tests/ src/ Functional/ CouponTest.php - DefaultPaymentAdminTest::setUp in modules/
payment/ tests/ src/ Functional/ DefaultPaymentAdminTest.php - EntitySelectWidgetTest::setUp in tests/
src/ Functional/ EntitySelectWidgetTest.php - ManualPaymentAdminTest::setUp in modules/
payment/ tests/ src/ Functional/ ManualPaymentAdminTest.php
9 methods override CommerceBrowserTestBase::setUp()
- CheckoutOrderTest::setUp in modules/
checkout/ tests/ src/ Functional/ CheckoutOrderTest.php - CouponTest::setUp in modules/
promotion/ tests/ src/ Functional/ CouponTest.php - DefaultPaymentAdminTest::setUp in modules/
payment/ tests/ src/ Functional/ DefaultPaymentAdminTest.php - EntitySelectWidgetTest::setUp in tests/
src/ Functional/ EntitySelectWidgetTest.php - ManualPaymentAdminTest::setUp in modules/
payment/ tests/ src/ Functional/ ManualPaymentAdminTest.php
File
- tests/
src/ Functional/ CommerceBrowserTestBase.php, line 63
Class
- CommerceBrowserTestBase
- Provides a base class for Commerce functional tests.
Namespace
Drupal\Tests\commerce\FunctionalCode
protected function setUp() : void {
$this
->setErrorHandler();
parent::setUp();
$factory = PhpUnitComparatorFactory::getInstance();
$factory
->register(new NumberComparator());
$factory
->register(new PriceComparator());
$this->store = $this
->createStore();
$this
->placeBlock('local_tasks_block');
$this
->placeBlock('local_actions_block');
$this
->placeBlock('page_title_block');
$this->adminUser = $this
->drupalCreateUser($this
->getAdministratorPermissions());
$this
->drupalLogin($this->adminUser);
}