PathTestBase.php

Definition of Drupal\path\Tests\PathTestBase.

Namespace

Drupal\path\Tests

File

drupal/core/modules/path/lib/Drupal/path/Tests/PathTestBase.php
View source
<?php

/**
 * @file
 * Definition of Drupal\path\Tests\PathTestBase.
 */
namespace Drupal\path\Tests;

use Drupal\simpletest\WebTestBase;

/**
 * Provides a base class for testing the Path module.
 */
abstract class PathTestBase extends WebTestBase {

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = array(
    'node',
    'path',
  );
  function setUp() {
    parent::setUp();

    // Create Basic page and Article node types.
    if ($this->profile != 'standard') {
      $this
        ->drupalCreateContentType(array(
        'type' => 'page',
        'name' => 'Basic page',
      ));
      $this
        ->drupalCreateContentType(array(
        'type' => 'article',
        'name' => 'Article',
      ));
    }
  }

}

Classes

Namesort descending Description
PathTestBase Provides a base class for testing the Path module.