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

partially reverting changes in TranslatableTest

parent c38626cb
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,14 +40,12 @@ public function testUnpackTranslatable() {
$view = $this->view_unpack_translatable();
$view->init_localization();
// @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');
$this->assertEqual('LocalizationTest', get_class($view->localization_plugin), 'Make sure that init_localization initializes the right translation plugin');
$view->export_locale_strings();
$expected_strings = $this->strings;
$result_strings = $localization_instance->get_export_strings();
$result_strings = $view->localization_plugin->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