/**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->installConfig(array('filter', 'node'));
     $node_type = entity_create('node_type', array('type' => 'article', 'name' => 'Article'));
     $node_type->save();
     node_add_body_field($node_type);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->installConfig(SupportTicketTokenReplaceTest::$modules);
     $this->installEntitySchema('comment');
     $this->installEntitySchema('support_ticket');
     $support_ticket_type = entity_create('support_ticket_type', array('type' => 'test', 'name' => 'Test'));
     $support_ticket_type->save();
     support_ticket_add_body_field($support_ticket_type);
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     // Set the site name to something other than an empty string.
     $this->config('system.site')->set('name', 'Drupal')->save();
 }