class PathFieldDefinitionTest in Drupal 9
Same name and namespace in other branches
- 8 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 extends \PHPUnit\Framework\TestCase uses \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, PhpUnitCompatibilityTrait, PhpUnitWarnings
- class \Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase
- class \Drupal\Tests\path\Unit\Field\PathFieldDefinitionTest
- class \Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase
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());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseFieldDefinitionTestBase:: |
protected | property | The field definition used in this test. | |
BaseFieldDefinitionTestBase:: |
protected | function |
Overrides UnitTestCase:: |
|
PathFieldDefinitionTest:: |
protected | function |
Returns the module name and the module directory for the plugin. Overrides BaseFieldDefinitionTestBase:: |
|
PathFieldDefinitionTest:: |
protected | function |
Returns the plugin ID of the tested field type. Overrides BaseFieldDefinitionTestBase:: |
|
PathFieldDefinitionTest:: |
public | function | @covers ::getColumns @covers ::getSchema | |
PhpUnitWarnings:: |
private static | property | Deprecation warnings from PHPUnit to raise with @trigger_error(). | |
PhpUnitWarnings:: |
public | function | Converts PHPUnit deprecation warnings to E_USER_DEPRECATED. | |
UnitTestCase:: |
protected | property | The random generator. | |
UnitTestCase:: |
protected | property | The app root. | 1 |
UnitTestCase:: |
protected | function | Asserts if two arrays are equal by sorting them first. | |
UnitTestCase:: |
protected | function | Returns a stub class resolver. | |
UnitTestCase:: |
public | function | Returns a stub config factory that behaves according to the passed array. | |
UnitTestCase:: |
public | function | Returns a stub config storage that returns the supplied configuration. | |
UnitTestCase:: |
protected | function | Sets up a container with a cache tags invalidator. | |
UnitTestCase:: |
protected | function | Gets the random generator for the utility methods. | |
UnitTestCase:: |
public | function | Returns a stub translation manager that just returns the passed string. | |
UnitTestCase:: |
public | function | Generates a unique random string containing letters and numbers. | |
UnitTestCase:: |
public static | function |