예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->installEntitySchema('taxonomy_term');
     // Create the default tags vocabulary.
     $vocabulary = Vocabulary::create(['name' => 'Tags', 'vid' => 'tags']);
     $vocabulary->save();
     $this->vocab = $vocabulary;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->installEntitySchema('user');
     $this->installEntitySchema('node');
     $node_type = NodeType::create(['type' => 'page', 'name' => 'Basic page', 'description' => "Use <em>basic pages</em> for your static content, such as an 'About us' page."]);
     $node_type->save();
     $node_type = NodeType::create(['type' => 'article', 'name' => 'Article', 'description' => "Use <em>articles</em> for time-sensitive content like news, press releases or blog posts."]);
     $node_type->save();
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->installEntitySchema('node');
     $this->installEntitySchema('user');
     $this->installEntitySchema('comment');
     $node_type = NodeType::create(['type' => 'page', 'name' => t('Page')]);
     $node_type->save();
     $this->installConfig(['comment']);
     $this->addDefaultCommentField('node', 'page');
 }
예제 #4
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->installEntitySchema('file');
 }