X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fblock%2Ftests%2Fsrc%2FFunctional%2FBlockXssTest.php;fp=web%2Fcore%2Fmodules%2Fblock%2Fsrc%2FTests%2FBlockXssTest.php;h=3e661d775d3de201f020d429c73a5b383e6064a1;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=b37f4cd2230dfc09ab2f43faf7f1a5466b00214c;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/block/src/Tests/BlockXssTest.php b/web/core/modules/block/tests/src/Functional/BlockXssTest.php similarity index 93% rename from web/core/modules/block/src/Tests/BlockXssTest.php rename to web/core/modules/block/tests/src/Functional/BlockXssTest.php index b37f4cd22..3e661d775 100644 --- a/web/core/modules/block/src/Tests/BlockXssTest.php +++ b/web/core/modules/block/tests/src/Functional/BlockXssTest.php @@ -1,12 +1,12 @@ drupalLogin($this->drupalCreateUser(['administer blocks', 'access administration pages'])); $this->drupalGet(Url::fromRoute('block.admin_display')); - $this->clickLinkPartialName('Place block'); + $this->clickLink('Place block'); $this->assertNoEscaped('<'); } @@ -58,7 +58,7 @@ class BlockXssTest extends WebTestBase { $this->drupalPlaceBlock('test_xss_title'); $this->drupalLogin($this->drupalCreateUser(['administer blocks', 'access administration pages'])); $this->drupalGet(Url::fromRoute('block.admin_display')); - $this->clickLinkPartialName('Place block'); + $this->clickLink('Place block'); $this->assertNoRaw(""); } @@ -73,7 +73,7 @@ class BlockXssTest extends WebTestBase { $this->doBlockContentTest(); $this->drupalGet(Url::fromRoute('block.admin_display')); - $this->clickLinkPartialName('Place block'); + $this->clickLink('Place block'); $this->assertNoRaw('&lt;', 'The page does not have double escaped HTML tags.'); } @@ -101,7 +101,7 @@ class BlockXssTest extends WebTestBase { $view->save(); $this->drupalGet(Url::fromRoute('block.admin_display')); - $this->clickLinkPartialName('Place block'); + $this->clickLink('Place block'); // \Drupal\views\Plugin\Derivative\ViewsBlock::getDerivativeDefinitions() // has a different code path for an admin label based only on the View @@ -137,7 +137,7 @@ class BlockXssTest extends WebTestBase { ])->save(); $this->drupalGet(Url::fromRoute('block.admin_display')); - $this->clickLinkPartialName('Place block'); + $this->clickLink('Place block'); $this->assertEscaped(''); $this->assertNoRaw(''); @@ -158,7 +158,7 @@ class BlockXssTest extends WebTestBase { ])->save(); $this->drupalGet(Url::fromRoute('block.admin_display')); - $this->clickLinkPartialName('Place block'); + $this->clickLink('Place block'); $this->assertEscaped(''); $this->assertNoRaw('');