Commit 7c26528e authored by aspilicious's avatar aspilicious Committed by tim.plunkett

partially reverting changes in TranslatableTest

parent c38626cb
......@@ -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.');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment