class DrupalTest in Autoload 7.2
Same name and namespace in other branches
- 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
- class \Drupal\autoload\Tests\Unit\DrupalTest
Expanded class hierarchy of DrupalTest
File
- src/
Tests/ Unit/ DrupalTest.php, line 8
Namespace
Drupal\autoload\Tests\UnitView 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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AutoloadTestBase:: |
protected | property | A path to file with the autoloading class map. | |
AutoloadTestBase:: |
protected | property | ||
AutoloadTestBase:: |
protected static | function | Returns an information about the test. | |
AutoloadTestBase:: |
protected | function | ||
AutoloadTestBase:: |
protected | function | ||
DrupalTest:: |
protected static | property |
Modules which should enabled for testing. Overrides AutoloadTestBase:: |
|
DrupalTest:: |
public static | function | ||
DrupalTest:: |
public | function |