EntityTest.php in Autoload 7.2
File
src/Tests/Unit/EntityTest.php
View source
<?php
namespace Drupal\autoload\Tests\Unit;
class EntityTest extends AutoloadTestBase {
protected static $modules = array(
'autoload_test_entity_ui',
);
public static function getInfo() {
return static::info(t('Ensure autoloading is properly operable in entity hooks.'));
}
public function test() {
$entity_info = entity_get_info('autoload_test_entity');
$this
->assertTrue(class_exists($entity_info['views controller class']), 'Views controller class for entity loaded successfully.');
}
}