Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / test / unit.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/unit.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/unit.twig
new file mode 100644 (file)
index 0000000..c845abd
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+namespace Drupal\Tests\{{ machine_name }}\Unit;
+
+use Drupal\Tests\UnitTestCase;
+
+/**
+ * Test description.
+ *
+ * @group {{ machine_name }}
+ */
+class {{ class }} extends UnitTestCase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    // @TODO: Mock required services here.
+  }
+
+  /**
+   * Tests something.
+   */
+  public function testSomething() {
+    $this->assertTrue(TRUE, 'This is TRUE!');
+  }
+
+}