class PathFieldDefinitionTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 \Drupal\Tests\PHPUnit_Framework_TestCase
- 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 16 - Contains \Drupal\Tests\path\Unit\Field\PathFieldDefinitionTest.
Namespace
Drupal\Tests\path\Unit\FieldView source
class PathFieldDefinitionTest extends BaseFieldDefinitionTestBase {
/**
* {@inheritdoc}
*/
protected function getPluginId() {
return 'path';
}
/**
* {@inheritdoc}
*/
protected function getModuleAndPath() {
return array(
'path',
dirname(dirname(dirname(dirname(__DIR__)))),
);
}
/**
* @covers ::getColumns
* @covers ::getSchema
*/
public function testGetColumns() {
$this
->assertSame(array(), $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 | |
UnitTestCase:: |
protected | property | The random generator. | |
UnitTestCase:: |
protected | property | The app root. | |
UnitTestCase:: |
protected | function | Asserts if two arrays are equal by sorting them first. | |
UnitTestCase:: |
protected | function | Mocks a block with a block plugin. | |
UnitTestCase:: |
protected | function | Returns a stub class resolver. | |
UnitTestCase:: |
public | function | Returns a stub config factory that behaves according to the passed in 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. |