public function ViewsTranslatableTest::testUi
3.x views_translatable.test | public ViewsTranslatableTest::testUi() |
File
- tests/
views_translatable.test, line 66 - Definition of ViewsTranslatableTest.
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.');
}