protected function CartQueryAccessTest::setUp in Commerce Core 8.2
Overrides CartKernelTestBase::setUp
File
- modules/
cart/ tests/ src/ Kernel/ CartQueryAccessTest.php, line 27
Class
- CartQueryAccessTest
- Tests query access filtering for carts.
Namespace
Drupal\Tests\commerce_cart\KernelCode
protected function setUp() : void {
parent::setUp();
// Create uid: 1 here so that it's skipped in test cases.
$admin_user = $this
->createUser();
$entity_type_manager = $this->container
->get('entity_type.manager');
$entity_type = $entity_type_manager
->getDefinition('commerce_order');
$this->handler = OrderQueryAccessHandler::createInstance($this->container, $entity_type);
}