Skip to content
Snippets Groups Projects
Commit ebd83f2e authored by Bram Goffings's avatar Bram Goffings Committed by Tim Plunkett
Browse files

possible fix for TranslatableTest

parent fe26a65c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -40,15 +40,14 @@ public function testUnpackTranslatable() {
$view = $this->view_unpack_translatable();
$view->init_localization();
// localization_plugin returns the plugin_id from the plugin
// get_class will go kaboom on a plugin_id I guess...
// TODO: fix this with anotation magic
$this->assertEqual('LocalizationTest', get_class($view->localization_plugin), 'Make sure that init_localization initializes the right translation plugin');
// @todo is this the correct fix?
$localization_instance = views_get_plugin('localization', $view->localization_plugin);
$this->assertEqual('LocalizationTest', get_class($localization_instance), 'Make sure that init_localization initializes the right translation plugin');
$view->export_locale_strings();
$expected_strings = $this->strings;
$result_strings = $view->localization_plugin->get_export_strings();
$result_strings = $localization_instance->get_export_strings();
$this->assertEqual(sort($expected_strings), sort($result_strings), 'Make sure that the localization plugin got every translatable string.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment