protected function OrderWebDriverTestBase::setUp in Commerce Core 8.2
Overrides CommerceWebDriverTestBase::setUp
5 calls to OrderWebDriverTestBase::setUp()
- AddressBookTest::setUp in modules/
order/ tests/ src/ FunctionalJavascript/ AddressBookTest.php - CartWebDriverTestBase::setUp in modules/
cart/ tests/ src/ FunctionalJavascript/ CartWebDriverTestBase.php - CustomerProfileTest::setUp in modules/
order/ tests/ src/ FunctionalJavascript/ CustomerProfileTest.php - OrderAdminTest::setUp in modules/
order/ tests/ src/ FunctionalJavascript/ OrderAdminTest.php - OrderReassignTest::setUp in modules/
order/ tests/ src/ FunctionalJavascript/ OrderReassignTest.php
5 methods override OrderWebDriverTestBase::setUp()
- AddressBookTest::setUp in modules/
order/ tests/ src/ FunctionalJavascript/ AddressBookTest.php - CartWebDriverTestBase::setUp in modules/
cart/ tests/ src/ FunctionalJavascript/ CartWebDriverTestBase.php - CustomerProfileTest::setUp in modules/
order/ tests/ src/ FunctionalJavascript/ CustomerProfileTest.php - OrderAdminTest::setUp in modules/
order/ tests/ src/ FunctionalJavascript/ OrderAdminTest.php - OrderReassignTest::setUp in modules/
order/ tests/ src/ FunctionalJavascript/ OrderReassignTest.php
File
- modules/
order/ tests/ src/ FunctionalJavascript/ OrderWebDriverTestBase.php, line 45
Class
- OrderWebDriverTestBase
- Defines base class for commerce_order test cases.
Namespace
Drupal\Tests\commerce_order\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
// Create a product variation.
$this->variation = $this
->createEntity('commerce_product_variation', [
'type' => 'default',
'sku' => $this
->randomMachineName(),
'price' => [
'number' => 999,
'currency_code' => 'USD',
],
]);
// We need a product too otherwise tests complain about the missing
// backreference.
$this
->createEntity('commerce_product', [
'type' => 'default',
'title' => $this
->randomMachineName(),
'stores' => [
$this->store,
],
'variations' => [
$this->variation,
],
]);
}