Verified Commit ce7120d5 authored by Alex Pott's avatar Alex Pott
Browse files

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

Issue #3279840 by Spokje, mallezie, alexpott: Fix \Drupal\Tests\quickedit\FunctionalJavascript\SettingsTrayIntegrationTest::createBlockContent()
parent 11ac481e
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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,