class TraitAccessTest in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Unit/TraitAccessTest.php \Drupal\Tests\system\Unit\TraitAccessTest
- 9 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 extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, PhpUnitWarnings
- class \Drupal\Tests\system\Unit\TraitAccessTest uses TestTrait
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");
}
}