class TraitAccessTest
Same name and namespace in other branches
- 11.x core/modules/system/tests/src/Unit/TraitAccessTest.php \Drupal\Tests\system\Unit\TraitAccessTest
- 10 core/modules/system/tests/src/Unit/TraitAccessTest.php \Drupal\Tests\system\Unit\TraitAccessTest
- 8.9.x core/modules/system/tests/src/Unit/TraitAccessTest.php \Drupal\Tests\system\Unit\TraitAccessTest
Test whether traits are autoloaded during PHPUnit discovery time.
@group system @group Test
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\system\Unit\TraitAccessTest uses \Drupal\Tests\system\Traits\TestTrait extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of TraitAccessTest
File
-
core/
modules/ system/ tests/ src/ Unit/ TraitAccessTest.php, line 14
Namespace
Drupal\Tests\system\UnitView source
class TraitAccessTest extends UnitTestCase {
use TestTrait;
/**
* @coversNothing
*/
public function testSimpleStuff() {
$stuff = $this->getStuff();
$this->assertSame($stuff, 'stuff', "Same old stuff");
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.