projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
block_content
/
tests
/
src
/
Functional
/
BlockContentCreationTest.php
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 0f89b86e6a237149f01e523e09380461a839b56b..46768d694b249bee1a1e74a992023f129a95ddc3 100644
(file)
--- 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;
namespace Drupal\Tests\block_content\Functional;
use Drupal\block_content\Entity\BlockContent;
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Database\Database;
/**
use Drupal\Core\Database\Database;
/**
@@
-30,7
+29,7
@@
class BlockContentCreationTest extends BlockContentTestBase {
*/
protected $permissions = [
'administer blocks',
*/
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',
// 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.
]), '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.', [
// 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);
}
]));
$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',
// 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
]), '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.', [
// 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);
}
]));
$this->assertResponse(200);
}
@@
-239,7
+238,7
@@
class BlockContentCreationTest extends BlockContentTestBase {
// Place the block.
$instance = [
// 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',
];
'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.
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(),
$instance = [
'id' => $block_placement_id,
'settings[label]' => $block->label(),