X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fblock_content%2Ftests%2Fsrc%2FFunctional%2FBlockContentCreationTest.php;fp=web%2Fcore%2Fmodules%2Fblock_content%2Ftests%2Fsrc%2FFunctional%2FBlockContentCreationTest.php;h=46768d694b249bee1a1e74a992023f129a95ddc3;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0f89b86e6a237149f01e523e09380461a839b56b;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php b/web/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php index 0f89b86e6..46768d694 100644 --- a/web/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php +++ b/web/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php @@ -3,7 +3,6 @@ namespace Drupal\Tests\block_content\Functional; use Drupal\block_content\Entity\BlockContent; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Database\Database; /** @@ -30,7 +29,7 @@ class BlockContentCreationTest extends BlockContentTestBase { */ protected $permissions = [ 'administer blocks', - 'administer block_content display' + 'administer block_content display', ]; /** @@ -56,7 +55,7 @@ class BlockContentCreationTest extends BlockContentTestBase { // Check that the Basic block has been created. $this->assertRaw(format_string('@block %name has been created.', [ '@block' => 'basic', - '%name' => $edit['info[0][value]'] + '%name' => $edit['info[0][value]'], ]), 'Basic block created.'); // Check that the view mode setting is hidden because only one exists. @@ -75,7 +74,7 @@ class BlockContentCreationTest extends BlockContentTestBase { // Check that the Basic block has been created. $this->assertRaw(format_string('A custom block with block description %value already exists.', [ - '%value' => $edit['info[0][value]'] + '%value' => $edit['info[0][value]'], ])); $this->assertResponse(200); } @@ -105,7 +104,7 @@ class BlockContentCreationTest extends BlockContentTestBase { // Check that the Basic block has been created. $this->assertRaw(format_string('@block %name has been created.', [ '@block' => 'basic', - '%name' => $edit['info[0][value]'] + '%name' => $edit['info[0][value]'], ]), 'Basic block created.'); // Save our block permanently @@ -157,7 +156,7 @@ class BlockContentCreationTest extends BlockContentTestBase { // Check that the Basic block has been created. $this->assertRaw(format_string('A custom block with block description %value already exists.', [ - '%value' => $edit['info[0][value]'] + '%value' => $edit['info[0][value]'], ])); $this->assertResponse(200); } @@ -239,7 +238,7 @@ class BlockContentCreationTest extends BlockContentTestBase { // Place the block. $instance = [ - 'id' => Unicode::strtolower($edit['info[0][value]']), + 'id' => mb_strtolower($edit['info[0][value]']), 'settings[label]' => $edit['info[0][value]'], 'region' => 'sidebar_first', ]; @@ -291,7 +290,7 @@ class BlockContentCreationTest extends BlockContentTestBase { public function testConfigDependencies() { $block = $this->createBlockContent(); // Place the block. - $block_placement_id = Unicode::strtolower($block->label()); + $block_placement_id = mb_strtolower($block->label()); $instance = [ 'id' => $block_placement_id, 'settings[label]' => $block->label(),