Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
303
Merge Requests
303
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
f47a9ed9
Unverified
Commit
f47a9ed9
authored
Sep 06, 2017
by
larowlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2863644
by Lendude, zviryatko, Manuel Garcia, Jo Fitzgerald: Convert web tests of block
parent
7ba77154
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core/modules/block/tests/src/Functional/AssertBlockAppearsTrait.php
...es/block/tests/src/Functional/AssertBlockAppearsTrait.php
+2
-2
No files found.
core/modules/block/tests/src/Functional/AssertBlockAppearsTrait.php
View file @
f47a9ed9
...
...
@@ -20,7 +20,7 @@ trait AssertBlockAppearsTrait {
*/
protected
function
assertBlockAppears
(
Block
$block
)
{
$result
=
$this
->
findBlockInstance
(
$block
);
$this
->
assertTrue
(
!
empty
(
$result
),
new
FormattableMarkup
(
'
Ensure t
he block @id appears on the page'
,
[
'@id'
=>
$block
->
id
()]));
$this
->
assertTrue
(
!
empty
(
$result
),
new
FormattableMarkup
(
'
T
he block @id appears on the page'
,
[
'@id'
=>
$block
->
id
()]));
}
/**
...
...
@@ -31,7 +31,7 @@ protected function assertBlockAppears(Block $block) {
*/
protected
function
assertNoBlockAppears
(
Block
$block
)
{
$result
=
$this
->
findBlockInstance
(
$block
);
$this
->
assertFalse
(
!
empty
(
$result
),
new
FormattableMarkup
(
'
Ensure t
he block @id does not appear on the page'
,
[
'@id'
=>
$block
->
id
()]));
$this
->
assertFalse
(
!
empty
(
$result
),
new
FormattableMarkup
(
'
T
he block @id does not appear on the page'
,
[
'@id'
=>
$block
->
id
()]));
}
/**
...
...
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