PathFieldDefinitionTest.php

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

Namespace

Drupal\Tests\path\Unit\Field

File

core/modules/path/tests/src/Unit/Field/PathFieldDefinitionTest.php

View source
<?php

declare (strict_types=1);
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() : string {
    return 'path';
  }
  
  /**
   * {@inheritdoc}
   */
  protected function getModuleAndPath() : array {
    return [
      'path',
      dirname(__DIR__, 4),
    ];
  }
  
  /**
   * @covers ::getColumns
   * @covers ::getSchema
   */
  public function testGetColumns() : void {
    $this->assertSame([], $this->definition
      ->getColumns());
  }

}

Classes

Title Deprecated Summary
PathFieldDefinitionTest @coversDefaultClass \Drupal\Core\Field\BaseFieldDefinition[[api-linebreak]] @group path

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.