TraitAccessTest.php

Same filename and directory in other branches
  1. 8.9.x core/modules/system/tests/src/Unit/TraitAccessTest.php
  2. 10 core/modules/system/tests/src/Unit/TraitAccessTest.php
  3. 11.x core/modules/system/tests/src/Unit/TraitAccessTest.php

Namespace

Drupal\Tests\system\Unit

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;

/**
 * Test whether traits are autoloaded during PHPUnit discovery time.
 *
 * @group system
 * @group Test
 */
class TraitAccessTest extends UnitTestCase {
    use TestTrait;
    
    /**
     * @coversNothing
     */
    public function testSimpleStuff() {
        $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.