Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
fe4693f9
Commit
fe4693f9
authored
Feb 04, 2020
by
catch
Browse files
Issue
#3106243
by Hardik_Patel_12, longwave: Remove unused variables from block content module
parent
b8740d88
Changes
3
Show whitespace changes
Inline
Side-by-side
core/modules/block_content/tests/src/Functional/BlockContentRevisionsTest.php
View file @
fe4693f9
...
...
@@ -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'
);
...
...
core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
View file @
fe4693f9
...
...
@@ -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
();
...
...
core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
View file @
fe4693f9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment