Loading core/modules/media/tests/src/Kernel/MediaEmbedFilterDisabledIntegrationsTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ protected function setUp(): void { parent::setUp(); $this->container->get('current_user') ->getAccount() ->addRole($this->drupalCreateRole([ 'access contextual links', ])); Loading core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,7 @@ public function testAccessUnpublished($allowed_to_view_unpublished, $expected_re // Are we testing as a user who is allowed to view the embedded entity? if ($allowed_to_view_unpublished) { $this->container->get('current_user') ->getAccount() ->addRole($this->drupalCreateRole(['view own unpublished media'])); } Loading core/modules/media/tests/src/Kernel/MediaEmbedFilterTestBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ protected function setUp(): void { 'access content', 'view media', ]); $this->container->set('current_user', $user); $this->container->get('current_user')->setAccount($user); $this->image = File::create([ 'uri' => $this->getTestFiles('image')[0]->uri, Loading core/modules/user/tests/src/Kernel/UserAccountFormPasswordResetTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ protected function setUp(): void { $this->user->save(); // Set current user. $this->container->set('current_user', $this->user); $this->container->get('current_user')->setAccount($this->user); // Install the router table and then rebuild. \Drupal::service('router.builder')->rebuild(); } Loading Loading
core/modules/media/tests/src/Kernel/MediaEmbedFilterDisabledIntegrationsTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ protected function setUp(): void { parent::setUp(); $this->container->get('current_user') ->getAccount() ->addRole($this->drupalCreateRole([ 'access contextual links', ])); Loading
core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,7 @@ public function testAccessUnpublished($allowed_to_view_unpublished, $expected_re // Are we testing as a user who is allowed to view the embedded entity? if ($allowed_to_view_unpublished) { $this->container->get('current_user') ->getAccount() ->addRole($this->drupalCreateRole(['view own unpublished media'])); } Loading
core/modules/media/tests/src/Kernel/MediaEmbedFilterTestBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ protected function setUp(): void { 'access content', 'view media', ]); $this->container->set('current_user', $user); $this->container->get('current_user')->setAccount($user); $this->image = File::create([ 'uri' => $this->getTestFiles('image')[0]->uri, Loading
core/modules/user/tests/src/Kernel/UserAccountFormPasswordResetTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ protected function setUp(): void { $this->user->save(); // Set current user. $this->container->set('current_user', $this->user); $this->container->get('current_user')->setAccount($this->user); // Install the router table and then rebuild. \Drupal::service('router.builder')->rebuild(); } Loading