You are here

PathTestBase.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/path/src/Tests/PathTestBase.php

Namespace

Drupal\path\Tests

File

core/modules/path/src/Tests/PathTestBase.php
View source
<?php

/**
 * @file
 * Contains \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',
  );
  protected 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.