function MediaOverviewPageTest::setUp
Overrides MediaFunctionalTestTrait::setUp
File
- 
              core/
modules/ media/ tests/ src/ Functional/ MediaOverviewPageTest.php, line 37  
Class
- MediaOverviewPageTest
 - Tests the Media overview page.
 
Namespace
Drupal\Tests\media\FunctionalCode
protected function setUp() : void {
  parent::setUp();
  // Make the site multilingual to have a working language field handler.
  ConfigurableLanguage::create([
    'id' => 'es',
    'title' => 'Spanish title',
    'label' => 'Spanish label',
  ])->save();
  $this->drupalLogin($this->nonAdminUser);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.