Version 1
[yaffs-website] / web / core / modules / content_translation / src / Tests / Views / ContentTranslationViewsUITest.php
diff --git a/web/core/modules/content_translation/src/Tests/Views/ContentTranslationViewsUITest.php b/web/core/modules/content_translation/src/Tests/Views/ContentTranslationViewsUITest.php
new file mode 100644 (file)
index 0000000..07b5d00
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+
+namespace Drupal\content_translation\Tests\Views;
+
+use Drupal\views_ui\Tests\UITestBase;
+
+/**
+ * Tests the views UI when content_translation is enabled.
+ *
+ * @group content_translation
+ */
+class ContentTranslationViewsUITest extends UITestBase {
+
+  /**
+   * Views used by this test.
+   *
+   * @var array
+   */
+  public static $testViews = ['test_view'];
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['content_translation'];
+
+  /**
+   * Tests the views UI.
+   */
+  public function testViewsUI() {
+    $this->drupalGet('admin/structure/views/view/test_view/edit');
+    $this->assertTitle(t('@label (@table) | @site-name', ['@label' => 'Test view', '@table' => 'Views test data', '@site-name' => $this->config('system.site')->get('name')]));
+  }
+
+}