function ViewsTranslatableTest::testUi

File

tests/views_translatable.test, line 75

Class

ViewsTranslatableTest
Tests Views pluggable translations.

Code

public function testUi() {
    // Make sure that the string is not translated in the UI.
    $view = $this->view_unpack_translatable();
    $view->save();
    views_invalidate_cache();
    $admin_user = $this->drupalCreateUser(array(
        'administer views',
        'administer site configuration',
    ));
    $this->drupalLogin($admin_user);
    $this->drupalGet("admin/structure/views/view/{$view->name}/edit");
    $this->assertNoText('-translated', 'Make sure that no strings get translated in the UI.');
}