class PathFieldDefinitionTest
Same name and namespace in other branches
- 11.x core/modules/path/tests/src/Unit/Field/PathFieldDefinitionTest.php \Drupal\Tests\path\Unit\Field\PathFieldDefinitionTest
- 10 core/modules/path/tests/src/Unit/Field/PathFieldDefinitionTest.php \Drupal\Tests\path\Unit\Field\PathFieldDefinitionTest
- 8.9.x core/modules/path/tests/src/Unit/Field/PathFieldDefinitionTest.php \Drupal\Tests\path\Unit\Field\PathFieldDefinitionTest
@coversDefaultClass \Drupal\Core\Field\BaseFieldDefinition
@group path
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase extends \Drupal\Tests\UnitTestCase
- class \Drupal\Tests\path\Unit\Field\PathFieldDefinitionTest extends \Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase
- class \Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of PathFieldDefinitionTest
File
-
core/
modules/ path/ tests/ src/ Unit/ Field/ PathFieldDefinitionTest.php, line 11
Namespace
Drupal\Tests\path\Unit\FieldView source
class PathFieldDefinitionTest extends BaseFieldDefinitionTestBase {
/**
* {@inheritdoc}
*/
protected function getPluginId() {
return 'path';
}
/**
* {@inheritdoc}
*/
protected function getModuleAndPath() {
return [
'path',
dirname(__DIR__, 4),
];
}
/**
* @covers ::getColumns
* @covers ::getSchema
*/
public function testGetColumns() {
$this->assertSame([], $this->definition
->getColumns());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.