You are here

SupportBasicTest.php in Support Ticketing System 8

File

src/Tests/SupportBasicTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\support\Tests\SupportBasicTest.
 */
namespace Drupal\support\Tests;

use Drupal\simpletest\WebTestBase;

/**
 * Tests the basic support integration functionality.
 *
 * @group support
 *
 * @codeCoverageIgnore
 */
class SupportBasicTest extends WebTestBase {

  /**
   * Modules to enable.
   *
   * Note: node is only needed for testing 'access content'.
   *
   * @var array
   */
  public static $modules = array(
    'support',
    'node',
  );

  /**
   * The basic functionality of the support module.
   */
  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);
  }

}

Classes

Namesort descending Description
SupportBasicTest Tests the basic support integration functionality.