protected function WishlistItemAccessTest::setUp in Commerce Wishlist 8.3
Overrides WishlistKernelTestBase::setUp
File
- tests/
src/ Kernel/ WishlistItemAccessTest.php, line 27
Class
- WishlistItemAccessTest
- Tests the wishlist item access control.
Namespace
Drupal\Tests\commerce_wishlist\KernelCode
protected function setUp() : void {
parent::setUp();
// Create uid: 1 here so that it's skipped in test cases.
$admin_user = $this
->createUser();
$regular_user = $this
->createUser([
'uid' => 2,
]);
\Drupal::currentUser()
->setAccount($regular_user);
}