You are here

class DrupalTest in Autoload 7.2

Same name and namespace in other branches
  1. 7 src/Tests/Unit/DrupalTest.php \Drupal\autoload\Tests\Unit\DrupalTest

Class DrupalTest.

Hierarchy

  • class \Drupal\autoload\Tests\Unit\AutoloadTestBase extends \Drupal\autoload\Tests\Unit\DrupalWebTestCase

Expanded class hierarchy of DrupalTest

File

src/Tests/Unit/DrupalTest.php, line 8

Namespace

Drupal\autoload\Tests\Unit
View source
class DrupalTest extends AutoloadTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = array(
    'autoload_test_drupal',
  );

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return static::info(t('Testing functionality of autoloading the Drupal-way namespaces.'));
  }

  /**
   * {@inheritdoc}
   */
  public function test() {

    // If something will not work we'll get fatal error :)
    new \Drupal\autoload_test_drupal\PSR0();
    new \Drupal\autoload_test_drupal\PSR4();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AutoloadTestBase::$autoloadFile protected property A path to file with the autoloading class map.
AutoloadTestBase::$profile protected property
AutoloadTestBase::info protected static function Returns an information about the test.
AutoloadTestBase::preloadRegistry protected function
AutoloadTestBase::setUp protected function
DrupalTest::$modules protected static property Modules which should enabled for testing. Overrides AutoloadTestBase::$modules
DrupalTest::getInfo public static function
DrupalTest::test public function