trait SlickUnitTestTrait in Slick Carousel 8
Same name and namespace in other branches
- 8.2 tests/src/Traits/SlickUnitTestTrait.php \Drupal\Tests\slick\Traits\SlickUnitTestTrait
A Trait common for Slick Unit tests.
Hierarchy
- trait \Drupal\Tests\slick\Traits\SlickUnitTestTrait
5 files declare their use of SlickUnitTestTrait
- SlickCrudTest.php in tests/
src/ Kernel/ SlickCrudTest.php - SlickFileFormatterTest.php in tests/
src/ Kernel/ SlickFileFormatterTest.php - SlickFormatterTest.php in tests/
src/ Kernel/ SlickFormatterTest.php - SlickManagerTest.php in tests/
src/ Kernel/ SlickManagerTest.php - SlickTextFormatterTest.php in tests/
src/ Kernel/ SlickTextFormatterTest.php
File
- tests/
src/ Traits/ SlickUnitTestTrait.php, line 8
Namespace
Drupal\Tests\slick\TraitsView source
trait SlickUnitTestTrait {
/**
* Defines scoped definition.
*/
protected function getSlickFormatterDefinition() {
return [
'namespace' => 'slick',
] + $this
->getFormatterDefinition() + $this
->getDefaulEntityFormatterDefinition();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SlickUnitTestTrait:: |
protected | function | Defines scoped definition. |