You are here

protected function SupportTicketTokenReplaceTest::setUp in Support Ticketing System 8

File

modules/support_ticket/src/Tests/SupportTicketTokenReplaceTest.php, line 33
Contains \Drupal\support_ticket\Tests\SupportTicketTokenReplaceTest.

Class

SupportTicketTokenReplaceTest
Generates text using placeholders for dummy content to check support_ticket token replacement.

Namespace

Drupal\support_ticket\Tests

Code

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);
}