Version 1
[yaffs-website] / web / core / modules / path / tests / src / Unit / Field / PathFieldDefinitionTest.php
1 <?php
2
3 namespace Drupal\Tests\path\Unit\Field;
4
5 use Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase;
6
7 /**
8  * @coversDefaultClass \Drupal\Core\Field\BaseFieldDefinition
9  * @group path
10  */
11 class PathFieldDefinitionTest extends BaseFieldDefinitionTestBase {
12
13   /**
14    * {@inheritdoc}
15    */
16   protected function getPluginId() {
17     return 'path';
18   }
19
20   /**
21    * {@inheritdoc}
22    */
23   protected function getModuleAndPath() {
24     return ['path', dirname(dirname(dirname(dirname(__DIR__))))];
25   }
26
27   /**
28    * @covers ::getColumns
29    * @covers ::getSchema
30    */
31   public function testGetColumns() {
32     $this->assertSame([], $this->definition->getColumns());
33   }
34
35 }