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
6f392976
Commit
6f392976
authored
Aug 14, 2012
by
dawehner
Committed by
tim.plunkett
Oct 21, 2012
Browse files
fixed wrong base-table name for the taxonomy wizard and improved the translation test.
parent
4c0755df
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/Drupal/views/Tests/TranslatableTest.php
View file @
6f392976
...
...
@@ -13,7 +13,12 @@
* Tests Views pluggable translations.
*/
class
TranslatableTest
extends
ViewsSqlTest
{
var
$strings
;
/**
* Stores the strings, which are tested by this test.
*
* @var array
*/
protected
$strings
;
public
static
function
getInfo
()
{
return
array
(
...
...
@@ -23,7 +28,7 @@ public static function getInfo() {
);
}
p
ublic
function
setUp
()
{
p
rotected
function
setUp
()
{
parent
::
setUp
();
config
(
'views.settings'
)
->
set
(
'views_localization_plugin'
,
'test_localization'
)
->
save
();
...
...
@@ -73,7 +78,9 @@ public function testTranslation() {
foreach
(
$this
->
strings
as
$string
)
{
$expected_strings
[]
=
$string
.
=
'-translated'
;
}
$this
->
assertEqual
(
sort
(
$expected_strings
),
sort
(
$view
->
localization_plugin
->
translated_strings
),
'Make sure that every string got loaded translated'
);
sort
(
$expected_strings
);
sort
(
$view
->
localization_plugin
->
translated_strings
);
$this
->
assertEqual
(
$expected_strings
,
$view
->
localization_plugin
->
translated_strings
,
'Make sure that every string got loaded translated'
);
}
/**
...
...
lib/Drupal/views/Tests/WizardJumpMenuTest.php
View file @
6f392976
...
...
@@ -23,13 +23,14 @@ public static function getInfo() {
* Tests the jump menu style plugin.
*/
function
testJumpMenus
()
{
views_invalidate_cache
();
// We'll run this test for several different base tables that appear in the
// wizard.
$base_table_methods
=
array
(
'node'
=>
'createNodeAndGetPath'
,
'users'
=>
'createUserAndGetPath'
,
'comment'
=>
'createCommentAndGetPath'
,
'taxonomy_term'
=>
'createTaxonomyTermAndGetPath'
,
'taxonomy_term
_data
'
=>
'createTaxonomyTermAndGetPath'
,
'file_managed'
=>
'createFileAndGetPath'
,
'node_revision'
=>
'createNodeRevisionAndGetPath'
,
);
...
...
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