You are here

protected function SupportTicketTestBase::setUp in Support Ticketing System 8

Sets up a Drupal site for running functional and integration tests.

Installs Drupal with the installation profile specified in \Drupal\simpletest\WebTestBase::$profile into the prefixed database.

Afterwards, installs any additional modules specified in the static \Drupal\simpletest\WebTestBase::$modules property of each class in the class hierarchy.

After installation all caches are flushed and several configuration values are reset to the values of the parent site executing the test, since the default values may be incompatible with the environment in which tests are being executed.

Overrides WebTestBase::setUp

6 calls to SupportTicketTestBase::setUp()
SupportTicketAccessTest::setUp in modules/support_ticket/src/Tests/SupportTicketAccessTest.php
Sets up a Drupal site for running functional and integration tests.
SupportTicketCreationTest::setUp in modules/support_ticket/src/Tests/SupportTicketCreationTest.php
Sets up a Drupal site for running functional and integration tests.
SupportTicketFormButtonsTest::setUp in modules/support_ticket/src/Tests/SupportTicketFormButtonsTest.php
Sets up a Drupal site for running functional and integration tests.
SupportTicketSaveTest::setUp in modules/support_ticket/src/Tests/SupportTicketSaveTest.php
Sets up a Drupal site for running functional and integration tests.
SupportTicketViewLanguageTest::setUp in modules/support_ticket/src/Tests/SupportTicketViewLanguageTest.php
Sets up a Drupal site for running functional and integration tests.

... See full list

6 methods override SupportTicketTestBase::setUp()
SupportTicketAccessTest::setUp in modules/support_ticket/src/Tests/SupportTicketAccessTest.php
Sets up a Drupal site for running functional and integration tests.
SupportTicketCreationTest::setUp in modules/support_ticket/src/Tests/SupportTicketCreationTest.php
Sets up a Drupal site for running functional and integration tests.
SupportTicketFormButtonsTest::setUp in modules/support_ticket/src/Tests/SupportTicketFormButtonsTest.php
Sets up a Drupal site for running functional and integration tests.
SupportTicketSaveTest::setUp in modules/support_ticket/src/Tests/SupportTicketSaveTest.php
Sets up a Drupal site for running functional and integration tests.
SupportTicketViewLanguageTest::setUp in modules/support_ticket/src/Tests/SupportTicketViewLanguageTest.php
Sets up a Drupal site for running functional and integration tests.

... See full list

File

modules/support_ticket/src/Tests/SupportTicketTestBase.php, line 71
Contains \Drupal\support_ticket\Tests\SupportTicketTestBase.

Class

SupportTicketTestBase
Sets up ticket type.

Namespace

Drupal\support_ticket\Tests

Code

protected function setUp() {
  parent::setUp();

  // Create ticket support ticket type.
  // DISABLED -- it should get set up during installation automatically.

  //$this->supportTicketCreateSupportTicketType(array('type' => 'ticket', 'name' => 'Ticket'));
  $this->accessHandler = \Drupal::entityManager()
    ->getAccessControlHandler('support_ticket');
}