/**
  * Overrides \Drupal\simpletest\WebTestBase::setUp().
  */
 public function setUp()
 {
     $this->entityTypeId = 'block_content';
     $this->bundle = 'basic';
     $this->testLanguageSelector = FALSE;
     parent::setUp();
 }
예제 #2
0
 function setUp()
 {
     $this->entityTypeId = 'taxonomy_term';
     $this->bundle = 'tags';
     $this->name = $this->randomName();
     parent::setUp();
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     $this->entityTypeId = 'menu_link_content';
     $this->bundle = 'menu_link_content';
     $this->fieldName = 'title';
     parent::setUp();
 }
예제 #4
0
 function setUp()
 {
     $this->entityTypeId = 'user';
     $this->testLanguageSelector = FALSE;
     $this->name = $this->randomName();
     parent::setUp();
     entity_get_controller('user')->resetCache();
 }
 protected function setUp()
 {
     $this->entityTypeId = 'user';
     $this->testLanguageSelector = FALSE;
     $this->name = $this->randomMachineName();
     parent::setUp();
     \Drupal::entityManager()->getStorage('user')->resetCache();
 }
 /**
  * Overrides \Drupal\simpletest\WebTestBase::setUp().
  */
 public function setUp()
 {
     $this->entityTypeId = 'block_content';
     $this->bundle = 'basic';
     $this->name = drupal_strtolower($this->randomName());
     $this->testLanguageSelector = FALSE;
     parent::setUp();
 }
 protected function setUp()
 {
     $this->entityTypeId = 'comment';
     $this->nodeBundle = 'article';
     $this->bundle = 'comment_article';
     $this->testLanguageSelector = FALSE;
     $this->subject = $this->randomMachineName();
     parent::setUp();
 }
예제 #8
0
 function setUp()
 {
     $this->entityTypeId = 'node';
     $this->bundle = 'article';
     parent::setUp();
     // Ensure the help message is shown even with prefixed paths.
     $this->drupalPlaceBlock('system_help_block', array('region' => 'content'));
     // Display the language selector.
     $this->drupalLogin($this->administrator);
     $edit = array('language_configuration[language_show]' => TRUE);
     $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
     $this->drupalLogin($this->translator);
 }
 function setUp()
 {
     $this->entityTypeId = 'taxonomy_term';
     $this->bundle = 'tags';
     parent::setUp();
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->entityTypeId = 'shortcut';
     $this->bundle = 'default';
     parent::setUp();
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->entityTypeId = 'menu_link_content';
     $this->bundle = 'menu_link_content';
     parent::setUp();
 }