class DrupalTest in Autoload 7
Same name and namespace in other branches
- 7.2 src/Tests/Unit/DrupalTest.php \Drupal\autoload\Tests\Unit\DrupalTest
 
Class DrupalTest.
Hierarchy
- class \Drupal\autoload\Tests\Unit\AuxiliaryTest 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 AuxiliaryTest {
  /**
   * {@inheritdoc}
   */
  protected static $modules = array(
    'autoload_test_drupal',
  );
  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    $info = parent::getInfo();
    $info['name'] = 'Drupal';
    $info['description'] = t('Testing functionality of autoload Drupal-way namespaces.');
    return $info;
  }
  /**
   * {@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 | 
|---|---|---|---|---|
| 
            AuxiliaryTest:: | 
                  protected | function | Assert sought classes. | |
| 
            AuxiliaryTest:: | 
                  protected | function | Assert registered extensions for autoloading. | |
| 
            AuxiliaryTest:: | 
                  protected | function | ||
| 
            DrupalTest:: | 
                  protected static | property | 
            Modules which should enabled for testing. Overrides AuxiliaryTest:: | 
                  |
| 
            DrupalTest:: | 
                  public static | function | 
            Overrides AuxiliaryTest:: | 
                  |
| 
            DrupalTest:: | 
                  public | function | 
            Unit tests for auxiliary functions. Overrides AuxiliaryTest:: |