class TraitAccessTest

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

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");
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.