/**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->adminUser = $this->drupalCreateUser(['administer content types', 'administer blocks', 'administer comments', 'administer comment types', 'post comments', 'create article content', 'access administration pages', 'access comments', 'access content']);
     $this->drupalLogin($this->adminUser);
     $this->drupalPlaceBlock('local_tasks_block');
     $this->node = Node::create(['type' => 'article', 'title' => 'New node', 'promote' => 1, 'uid' => $this->adminUser->id()]);
     $this->node->save();
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     foreach ($this->entityTypes as $entity_type_id => $info) {
         $this->entityTypes[$entity_type_id]['revision_id'] = $entity_type_id == 'node' ? 'vid' : 'revision_id';
         if ($entity_type_id == 'node' || $entity_type_id == 'menu_link_content') {
             $this->entityTypes[$entity_type_id]['name'] = 'title';
         } elseif ($entity_type_id == 'block_content') {
             $this->entityTypes[$entity_type_id]['name'] = 'info';
         } else {
             $this->entityTypes[$entity_type_id]['name'] = 'name';
         }
     }
 }
 protected function setUp()
 {
     parent::setUp();
     $this->sequenceIndex = \Drupal::service('entity.index.sequence');
 }