Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
23309d10
Commit
23309d10
authored
15 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#335067
by JamesAn: improved singular/plural strings in the simpletest UI.
parent
dcdc4f2e
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/simpletest/simpletest.module
+7
-7
7 additions, 7 deletions
modules/simpletest/simpletest.module
with
7 additions
and
7 deletions
modules/simpletest/simpletest.module
+
7
−
7
View file @
23309d10
...
...
@@ -189,10 +189,10 @@ function _simpletest_batch_operation($test_list_init, $test_id, &$context) {
function
_simpletest_batch_finished
(
$success
,
$results
,
$operations
,
$elapsed
)
{
if
(
$success
)
{
drupal_set_message
(
t
(
'The test
s
finished in @elapsed.'
,
array
(
'@elapsed'
=>
$elapsed
)));
drupal_set_message
(
t
(
'The test
run
finished in @elapsed.'
,
array
(
'@elapsed'
=>
$elapsed
)));
}
else
{
drupal_set_message
(
t
(
'The test
s
did not successfully finish.'
),
'error'
);
drupal_set_message
(
t
(
'The test
run
did not successfully finish.'
),
'error'
);
}
module_invoke_all
(
'test_group_finished'
);
}
...
...
@@ -266,7 +266,7 @@ function simpletest_clean_environment() {
simpletest_clean_database
();
simpletest_clean_temporary_directories
();
$count
=
simpletest_clean_results_table
();
drupal_set_message
(
t
(
'Removed
@count
test result
s
.'
,
array
(
'@count'
=>
$count
)
));
drupal_set_message
(
format_plural
(
$count
,
'Removed
1
test result.'
,
'Removed @count test results.'
));
}
/**
...
...
@@ -285,15 +285,15 @@ function simpletest_clean_database() {
}
if
(
count
(
$ret
)
>
0
)
{
drupal_set_message
(
t
(
'Removed
@count
left
over table
s
.'
,
array
(
'@count'
=>
count
(
$ret
))
));
drupal_set_message
(
format_plural
(
count
(
$ret
),
'Removed
1
leftover table.'
,
'Removed @count leftover tables.'
));
}
else
{
drupal_set_message
(
t
(
'No left
over tables to remove.'
));
drupal_set_message
(
t
(
'No leftover tables to remove.'
));
}
}
/**
* Find all left
over temporary directories and remove them.
* Find all leftover temporary directories and remove them.
*/
function
simpletest_clean_temporary_directories
()
{
$files
=
scandir
(
file_directory_path
());
...
...
@@ -307,7 +307,7 @@ function simpletest_clean_temporary_directories() {
}
if
(
$count
>
0
)
{
drupal_set_message
(
t
(
'Removed
@count
temporary director
ies
.'
,
array
(
'@count'
=>
$count
)
));
drupal_set_message
(
format_plural
(
$count
,
'Removed
1
temporary director
y
.'
,
'Removed @count temporary directories.'
));
}
else
{
drupal_set_message
(
t
(
'No temporary directories to remove.'
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment