abstract protected function BaseFieldDefinitionTestBase::getModuleAndPath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Field/BaseFieldDefinitionTestBase.php \Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase::getModuleAndPath()
Returns the module name and the module directory for the plugin.
drupal_get_path() cannot be used here, because it is not available in Drupal PHPUnit tests.
Return value
array A one-dimensional array containing the following strings:
- The module name.
- The module directory, e.g. DRUPAL_CORE . 'core/modules/path'.
1 call to BaseFieldDefinitionTestBase::getModuleAndPath()
- BaseFieldDefinitionTestBase::setUp in core/
tests/ Drupal/ Tests/ Core/ Field/ BaseFieldDefinitionTestBase.php
1 method overrides BaseFieldDefinitionTestBase::getModuleAndPath()
- PathFieldDefinitionTest::getModuleAndPath in core/
modules/ path/ tests/ src/ Unit/ Field/ PathFieldDefinitionTest.php - Returns the module name and the module directory for the plugin.
File
- core/
tests/ Drupal/ Tests/ Core/ Field/ BaseFieldDefinitionTestBase.php, line 81 - Contains \Drupal\Tests\Core\Field\BaseFieldDefinitionTestBase.
Class
- BaseFieldDefinitionTestBase
- Provides setup method for testing base field definitions.
Namespace
Drupal\Tests\Core\FieldCode
protected abstract function getModuleAndPath();