TraitAccessTest.php
Namespace
Drupal\Tests\system\UnitFile
-
core/
modules/ system/ tests/ src/ Unit/ TraitAccessTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\system\Unit;
use Drupal\Tests\system\Traits\TestTrait;
use Drupal\Tests\UnitTestCase;
use PHPUnit\Framework\Attributes\Group;
/**
* Test whether traits are autoloaded during PHPUnit discovery time.
*/
class TraitAccessTest extends UnitTestCase {
use TestTrait;
/**
* Tests \Drupal\Tests\system\Traits\TestTrait::getStuff().
*/
public function testSimpleStuff() : void {
$stuff = $this->getStuff();
$this->assertSame($stuff, 'stuff', "Same old stuff");
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| TraitAccessTest | Test whether traits are autoloaded during PHPUnit discovery time. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.