diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/StorageTest.php b/core/modules/views/lib/Drupal/views/Tests/UI/StorageTest.php index c740132..b124578 100644 --- a/core/modules/views/lib/Drupal/views/Tests/UI/StorageTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/UI/StorageTest.php @@ -7,6 +7,8 @@ namespace Drupal\views\Tests\UI; +use Drupal\Core\Language\Language; + /** * Tests the UI of storage properties of views. */ @@ -19,6 +21,13 @@ class StorageTest extends UITestBase { */ public static $testViews = array('test_view'); + /** + * Modules to enable. + * + * @var array + */ + public static $modules = array('views_ui', 'language'); + public static function getInfo() { return array( 'name' => 'Storage properties', @@ -34,19 +43,22 @@ public static function getInfo() { */ public function testDetails() { $view_name = 'test_view'; - $view = views_get_view($view_name); + + $language = new Language(array('name' => 'French', 'langcode' => 'fr')); + language_save($language); $edit = array( 'human_name' => $this->randomName(), 'tag' => $this->randomName(), 'description' => $this->randomName(30), + 'langcode' => 'fr', ); $this->drupalPost("admin/structure/views/nojs/edit-details/$view_name/default", $edit, t('Apply')); $this->drupalPost(NULL, array(), t('Save')); $view = views_get_view($view_name); - foreach (array('human_name', 'tag', 'description') as $property) { + foreach (array('human_name', 'tag', 'description', 'langcode') as $property) { $this->assertEqual($view->storage->get($property), $edit[$property], format_string('Make sure the property @property got probably saved.', array('@property' => $property))); } }