You are here

class EntityTest in Autoload 7

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

Class EntityTest.

Hierarchy

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

Expanded class hierarchy of EntityTest

File

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

Namespace

Drupal\autoload\Tests\Unit
View source
class EntityTest extends AuxiliaryTest {

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

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

    // The next error must not appear:
    // Error: Class 'Drupal\autoload_test_entity_ui\ViewsController' not found
    // in entity_views_data() (line 31 of sites/all/modules/entity/views/entity.
    // views.inc).
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AuxiliaryTest::assertClasses protected function Assert sought classes.
AuxiliaryTest::assertExtensions protected function Assert registered extensions for autoloading.
AuxiliaryTest::getInfo public static function 4
AuxiliaryTest::setUp protected function
EntityTest::$modules protected static property Modules which should enabled for testing. Overrides AuxiliaryTest::$modules
EntityTest::test public function Unit tests for auxiliary functions. Overrides AuxiliaryTest::test