namespace Drupal\Tests\block_content\Functional;
use Drupal\block_content\Entity\BlockContent;
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Database\Database;
/**
*/
protected $permissions = [
'administer blocks',
- 'administer block_content display'
+ 'administer block_content display',
];
/**
// 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.
// 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);
}
// 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
// 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);
}
// 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',
];
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(),