Version 1
[yaffs-website] / web / core / modules / path / tests / src / Unit / Field / PathFieldDefinitionTest.php
diff --git a/web/core/modules/path/tests/src/Unit/Field/PathFieldDefinitionTest.php b/web/core/modules/path/tests/src/Unit/Field/PathFieldDefinitionTest.php
new file mode 100644 (file)
index 0000000..7ef7c2f
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+
+namespace Drupal\Tests\path\Unit\Field;
+
+use Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase;
+
+/**
+ * @coversDefaultClass \Drupal\Core\Field\BaseFieldDefinition
+ * @group path
+ */
+class PathFieldDefinitionTest extends BaseFieldDefinitionTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getPluginId() {
+    return 'path';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getModuleAndPath() {
+    return ['path', dirname(dirname(dirname(dirname(__DIR__))))];
+  }
+
+  /**
+   * @covers ::getColumns
+   * @covers ::getSchema
+   */
+  public function testGetColumns() {
+    $this->assertSame([], $this->definition->getColumns());
+  }
+
+}