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
316
Merge Requests
316
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
ad7b2772
Commit
ad7b2772
authored
Oct 03, 2012
by
jhodgdon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1742602
by Lars Toomre: Remove a few more t() from test assertions in comment module
parent
c4a4964b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
core/modules/comment/lib/Drupal/comment/Tests/CommentBlockTest.php
...les/comment/lib/Drupal/comment/Tests/CommentBlockTest.php
+1
-1
core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
...comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
+1
-1
core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
...ules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
+2
-1
No files found.
core/modules/comment/lib/Drupal/comment/Tests/CommentBlockTest.php
View file @
ad7b2772
...
...
@@ -84,7 +84,7 @@ function testRecentCommentBlock() {
$this
->
assertText
(
$comment1
->
subject
,
'Comment found in block.'
);
$this
->
assertText
(
$comment2
->
subject
,
'Comment found in block.'
);
$this
->
assertText
(
$comment3
->
comment
,
'Comment found in block.'
);
$this
->
assertText
(
$comment4
->
subject
,
t
(
'Comment found in block.'
)
);
$this
->
assertText
(
$comment4
->
subject
,
'Comment found in block.'
);
// Test that links to comments work when comments are across pages.
$this
->
setCommentsPerPage
(
1
);
...
...
core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
View file @
ad7b2772
...
...
@@ -97,7 +97,7 @@ function testCommentInterface() {
// Second reply to comment #3 creating comment #4.
$this
->
drupalGet
(
'comment/reply/'
.
$this
->
node
->
nid
.
'/'
.
$comment
->
id
);
$this
->
assertText
(
$subject_text
,
t
(
'Individual comment-reply subject found.'
)
);
$this
->
assertText
(
$subject_text
,
'Individual comment-reply subject found.'
);
$this
->
assertText
(
$comment_text
,
'Individual comment-reply body found.'
);
$reply
=
$this
->
postComment
(
NULL
,
$this
->
randomName
(),
$this
->
randomName
(),
TRUE
);
$reply_loaded
=
comment_load
(
$reply
->
id
);
...
...
core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
View file @
ad7b2772
...
...
@@ -224,7 +224,8 @@ function setCommentsPerPage($number) {
*/
function
setCommentSettings
(
$name
,
$value
,
$message
)
{
variable_set
(
$name
.
'_article'
,
$value
);
$this
->
assertTrue
(
TRUE
,
t
(
$message
));
// Display status message.
// Display status message.
$this
->
assertTrue
(
TRUE
,
$message
);
}
/**
...
...
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