Commit fe4693f9 authored by catch's avatar catch
Browse files

Issue #3106243 by Hardik_Patel_12, longwave: Remove unused variables from block content module

parent b8740d88
......@@ -4,7 +4,6 @@
use Drupal\Component\Render\FormattableMarkup;
use Drupal\block_content\Entity\BlockContent;
use Drupal\user\Entity\User;
use Drupal\user\UserInterface;
/**
......@@ -37,9 +36,6 @@ class BlockContentRevisionsTest extends BlockContentTestBase {
protected function setUp() {
parent::setUp();
/** @var \Drupal\user\Entity\UserInterface $user */
$user = User::load(1);
// Create initial block.
$block = $this->createBlockContent('initial');
......
......@@ -173,7 +173,7 @@ public function testDisabledBundle() {
// Create a block content for each bundle.
$enabled_block_content = $this->createBlockContent();
$disabled_block_content = $this->createBlockContent(FALSE, $bundle->id());
$this->createBlockContent(FALSE, $bundle->id());
// Make sure that only a single row was inserted into the block table.
$rows = Database::getConnection()->query('SELECT * FROM {block_content_field_data} WHERE id = :id', [':id' => $enabled_block_content->id()])->fetchAll();
......
......@@ -188,8 +188,8 @@ public function testsBlockContentAddTypes() {
$this->drupalLogin($this->adminUser);
// Create two block types programmatically.
$type = $this->createBlockContentType('foo');
$type = $this->createBlockContentType('bar');
$this->createBlockContentType('foo');
$this->createBlockContentType('bar');
// Get the custom block storage.
$storage = $this->container
......
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