Verified Commit f88b9582 authored by alexpott's avatar alexpott
Browse files

Issue #3279840 by Spokje, mallezie, alexpott: Fix...

Issue #3279840 by Spokje, mallezie, alexpott: Fix \Drupal\Tests\quickedit\FunctionalJavascript\SettingsTrayIntegrationTest::createBlockContent()

(cherry picked from commit ce7120d5)
parent ac1dc4bb
......@@ -168,9 +168,8 @@ public function testCustomBlockLinks() {
/**
* Creates a custom block.
*
* @param bool|string $title
* (optional) Title of block. When no value is given uses a random name.
* Defaults to FALSE.
* @param string $title
* Title of block.
* @param string $bundle
* (optional) Bundle name. Defaults to 'basic'.
* @param bool $save
......@@ -179,8 +178,7 @@ public function testCustomBlockLinks() {
* @return \Drupal\block_content\Entity\BlockContent
* Created custom block.
*/
protected function createBlockContent($title = FALSE, $bundle = 'basic', $save = TRUE) {
$title = $title ?: $this->randomName();
protected function createBlockContent(string $title, string $bundle = 'basic', bool $save = TRUE): BlockContent {
$block_content = BlockContent::create([
'info' => $title,
'type' => $bundle,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment