protected function HelperTrait::composeStyleMockingPath in Style Switcher 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/HelperTrait.php \Drupal\Tests\styleswitcher\Functional\HelperTrait::composeStyleMockingPath()
Helps compose a single Style, mocking its path.
Parameters
string $label: Style's label.
string $type: (optional) Style type: "custom" or "theme".
Return value
array A Style with a name, a label and a path.
1 call to HelperTrait::composeStyleMockingPath()
- CookieUpdateTest::testCookieUpdates in tests/
src/ Functional/ CookieUpdateTest.php - Tests cookie updates.
File
- tests/
src/ Functional/ HelperTrait.php, line 104
Class
- HelperTrait
- Provides helper methods for the Style Switcher testing.
Namespace
Drupal\Tests\styleswitcher\FunctionalCode
protected function composeStyleMockingPath(string $label, string $type = 'custom') : array {
$styles = $this
->composeStylesMockingPaths([
$label,
], $type);
return reset($styles);
}