MediaFunctionalTestBase.php

Same filename in other branches
  1. 9 core/modules/media/tests/src/Functional/MediaFunctionalTestBase.php
  2. 10 core/modules/media/tests/src/Functional/MediaFunctionalTestBase.php
  3. 11.x core/modules/media/tests/src/Functional/MediaFunctionalTestBase.php

Namespace

Drupal\Tests\media\Functional

File

core/modules/media/tests/src/Functional/MediaFunctionalTestBase.php

View source
<?php

namespace Drupal\Tests\media\Functional;

use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\media\Traits\MediaTypeCreationTrait;

/**
 * Base class for Media functional tests.
 */
abstract class MediaFunctionalTestBase extends BrowserTestBase {
    use MediaFunctionalTestTrait;
    use MediaTypeCreationTrait;
    
    /**
     * Modules to enable.
     *
     * @var array
     */
    public static $modules = [
        'system',
        'node',
        'field_ui',
        'views_ui',
        'media',
        'media_test_source',
    ];

}

Classes

Title Deprecated Summary
MediaFunctionalTestBase Base class for Media functional tests.

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