1.20.x views_translatable.test public ViewsTranslatableTest::testUi()

Make sure that the string is not translated in the UI.

File

modules/views/tests/views_translatable.test, line 81
Definition of ViewsTranslatableTest.

Class

ViewsTranslatableTest
Tests Views pluggable translations.

Code

public function testUi() {
  $view = $this->viewUnpackTranslatable();
  $view->save();
  views_invalidate_cache();

  $admin_user = $this->backdropCreateUser(array('administer views', 'administer site configuration'));
  $this->backdropLogin($admin_user);

  $this->backdropGet("admin/structure/views/view/$view->name/edit");
  $this->assertNoText('-translated', 'Make sure that no strings get translated in the UI.');
}