You are here

protected function AggregatorTitleTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/aggregator/tests/src/Kernel/AggregatorTitleTest.php \Drupal\Tests\aggregator\Kernel\AggregatorTitleTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/aggregator/tests/src/Kernel/AggregatorTitleTest.php, line 39

Class

AggregatorTitleTest
Tests the aggregator_title formatter.

Namespace

Drupal\Tests\aggregator\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'field',
  ]);
  $this
    ->installEntitySchema('aggregator_feed');
  $this
    ->installEntitySchema('aggregator_item');
  \Drupal::service('router.builder')
    ->rebuild();
  $this->fieldName = 'title';
}