diff core/modules/system/tests/src/Unit/TraitAccessTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/modules/system/tests/src/Unit/TraitAccessTest.php	Thu May 09 15:33:08 2019 +0100
@@ -0,0 +1,26 @@
+<?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");
+  }
+
+}