You are here

class TraitAccessTest in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Unit/TraitAccessTest.php \Drupal\Tests\system\Unit\TraitAccessTest
  2. 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

Expanded class hierarchy of TraitAccessTest

File

core/modules/system/tests/src/Unit/TraitAccessTest.php, line 14

Namespace

Drupal\Tests\system\Unit
View source
class TraitAccessTest extends UnitTestCase {
  use TestTrait;

  /**
   * @coversNothing
   */
  public function testSimpleStuff() {
    $stuff = $this
      ->getStuff();
    $this
      ->assertSame($stuff, 'stuff', "Same old stuff");
  }

}

Members