ContentTranslationViewsUITest.php

Same filename in other branches
  1. 8.9.x core/modules/content_translation/tests/src/Functional/Views/ContentTranslationViewsUITest.php
  2. 10 core/modules/content_translation/tests/src/Functional/Views/ContentTranslationViewsUITest.php
  3. 11.x core/modules/content_translation/tests/src/Functional/Views/ContentTranslationViewsUITest.php

Namespace

Drupal\Tests\content_translation\Functional\Views

File

core/modules/content_translation/tests/src/Functional/Views/ContentTranslationViewsUITest.php

View source
<?php

namespace Drupal\Tests\content_translation\Functional\Views;

use Drupal\Tests\views_ui\Functional\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
     */
    protected static $modules = [
        'content_translation',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected $defaultTheme = 'stark';
    
    /**
     * Tests the views UI.
     */
    public function testViewsUI() {
        $this->drupalGet('admin/structure/views/view/test_view/edit');
        $this->assertSession()
            ->titleEquals('Test view (Views test data) | Drupal');
    }

}

Classes

Title Deprecated Summary
ContentTranslationViewsUITest Tests the views UI when content_translation is enabled.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.