TraitAccessTest.php in Drupal 10
File
core/modules/system/tests/src/Unit/TraitAccessTest.php
View source
<?php
namespace Drupal\Tests\system\Unit;
use Drupal\Tests\UnitTestCase;
use Drupal\Tests\system\Traits\TestTrait;
class TraitAccessTest extends UnitTestCase {
use TestTrait;
public function testSimpleStuff() {
$stuff = $this
->getStuff();
$this
->assertSame($stuff, 'stuff', "Same old stuff");
}
}
Classes
Name |
Description |
TraitAccessTest |
Test whether traits are autoloaded during PHPUnit discovery time. |