function EntityTestViewsFieldAccessTest::setUp
Overrides FieldFieldAccessTestBase::setUp
File
- 
              core/
modules/ views/ tests/ src/ Kernel/ Handler/ EntityTestViewsFieldAccessTest.php, line 27  
Class
- EntityTestViewsFieldAccessTest
 - Tests base field access in Views for the entity_test entity.
 
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  $this->installEntitySchema('entity_test');
  // Make the site multilingual to have a working language field handler.
  ConfigurableLanguage::create([
    'id' => 'es',
    'title' => 'Spanish title',
    'label' => 'Spanish label',
  ])->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.