PathFieldDefinitionTest.php
Namespace
Drupal\Tests\path\Unit\FieldFile
-
core/
modules/ path/ tests/ src/ Unit/ Field/ PathFieldDefinitionTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\path\Unit\Field;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
/**
* Tests Drupal\Core\Field\BaseFieldDefinition.
*/
class PathFieldDefinitionTest extends BaseFieldDefinitionTestBase {
/**
* {@inheritdoc}
*/
protected function getPluginId() : string {
return 'path';
}
/**
* {@inheritdoc}
*/
protected function getModuleAndPath() : array {
return [
'path',
dirname(__DIR__, 4),
];
}
/**
* Tests get columns.
*
* @legacy-covers ::getColumns
* @legacy-covers ::getSchema
*/
public function testGetColumns() : void {
$this->assertSame([], $this->definition
->getColumns());
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| PathFieldDefinitionTest | Tests Drupal\Core\Field\BaseFieldDefinition. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.