You are here

public function SupportBasicTest::testBasicSupportFunctionality in Support Ticketing System 8

The basic functionality of the support module.

File

src/Tests/SupportBasicTest.php, line 31
Contains \Drupal\support\Tests\SupportBasicTest.

Class

SupportBasicTest
Tests the basic support integration functionality.

Namespace

Drupal\support\Tests

Code

public function testBasicSupportFunctionality() {

  // Test that the front page exists.
  $this
    ->drupalGet('<front>');
  $this
    ->assertResponse(200, 'Front page exists.');
  $this
    ->assertRaw('Drupal');

  // Test that login works.
  $admin_user = $this
    ->drupalCreateUser(array(
    'access content',
  ));
  $this
    ->drupalLogin($admin_user);
}