public function ViewsTranslatableTest::testUi in Views (for Drupal 7) 7.3
File
- tests/
views_translatable.test, line 69 - 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.');
}