Commit ebd83f2e authored by aspilicious's avatar aspilicious Committed by tim.plunkett

possible fix for TranslatableTest

parent fe26a65c
......@@ -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.');
}
......
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