Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d57f04d3
Commit
d57f04d3
authored
Oct 01, 2012
by
Jennifer Hodgdon
Browse files
Issue
#1741386
by andypost, Lars Toomre: Remove remaining t() in test assertions in book module
parent
f1c7eec6
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/book/lib/Drupal/book/Tests/BookTest.php
View file @
d57f04d3
...
...
@@ -145,7 +145,7 @@ function checkBookNode(Node $node, $nodes, $previous = FALSE, $up = FALSE, $next
$this
->
assertPattern
(
$this
->
generateOutlinePattern
(
$nodes
),
format_string
(
'Node @number outline confirmed.'
,
array
(
'@number'
=>
$number
)));
}
else
{
$this
->
pass
(
t
(
'Node
'
.
$
number
.
'
does
n\'
t have outline.'
));
$this
->
pass
(
format_string
(
'Node
%
number does
no
t have outline.'
,
array
(
'%number'
=>
$number
)
));
}
// Check previous, up, and next links.
...
...
@@ -330,7 +330,7 @@ function testNavigationBlockOnAccessModuleEnabled() {
$edit
=
array
();
$edit
[
DRUPAL_ANONYMOUS_RID
.
'[node test view]'
]
=
TRUE
;
$this
->
drupalPost
(
'admin/people/permissions/'
.
DRUPAL_ANONYMOUS_RID
,
$edit
,
t
(
'Save permissions'
));
$this
->
assertText
(
t
(
'The changes have been saved.'
),
'
Permission
\
'node test view
\
' successfully assigned to anonymous users.
'
);
$this
->
assertText
(
t
(
'The changes have been saved.'
),
"
Permission 'node test view' successfully assigned to anonymous users.
"
);
// Create a book.
$this
->
createBook
();
...
...
@@ -356,7 +356,7 @@ function testBookDelete() {
// Test access to delete top-level and child book nodes.
$this
->
drupalGet
(
'node/'
.
$this
->
book
->
nid
.
'/outline/remove'
);
$this
->
assertResponse
(
'403'
,
t
(
'Deleting top-level book node properly forbidden.'
)
)
;
$this
->
assertResponse
(
'403'
,
'Deleting top-level book node properly forbidden.'
);
$this
->
drupalPost
(
'node/'
.
$nodes
[
4
]
->
nid
.
'/outline/remove'
,
$edit
,
t
(
'Remove'
));
$node4
=
node_load
(
$nodes
[
4
]
->
nid
,
TRUE
);
$this
->
assertTrue
(
empty
(
$node4
->
book
),
'Deleting child book node properly allowed.'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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