You are here

PathFieldDefinitionTest.php in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/path/tests/src/Unit/Field/PathFieldDefinitionTest.php

File

core/modules/path/tests/src/Unit/Field/PathFieldDefinitionTest.php
View source
<?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());
  }

}

Classes

Namesort descending Description
PathFieldDefinitionTest @coversDefaultClass \Drupal\Core\Field\BaseFieldDefinition @group path