protected function OrderReportTest::setUp in Commerce Reporting 8
Overrides CommerceKernelTestBase::setUp
File
- tests/
src/ Kernel/ ReportType/ OrderReportTest.php, line 46
Class
- OrderReportTest
- Tests the `commerce_order_report` entity.
Namespace
Drupal\Tests\commerce_reports\Kernel\ReportTypeCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('profile');
$this
->installEntitySchema('commerce_order');
$this
->installEntitySchema('commerce_order_item');
$this
->installEntitySchema('commerce_order_report');
$this
->installConfig('commerce_order');
$this->reportTypeManager = $this->container
->get('plugin.manager.commerce_report_type');
$user = $this
->createUser([
'mail' => $this
->randomString() . '@example.com',
]);
$this->user = $this
->reloadEntity($user);
}