function BreakpointTest::setupBreakpoint
Same name in other branches
- 9 core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::setupBreakpoint()
- 8.9.x core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::setupBreakpoint()
- 10 core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::setupBreakpoint()
Sets up the breakpoint defaults.
6 calls to BreakpointTest::setupBreakpoint()
- BreakpointTest::testGetGroup in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getGroup
- BreakpointTest::testGetLabel in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getLabel
- BreakpointTest::testGetMediaQuery in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getMediaQuery
- BreakpointTest::testGetMultipliers in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getMultipliers
- BreakpointTest::testGetProvider in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getProvider
File
-
core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php, line 59
Class
- BreakpointTest
- @coversDefaultClass \Drupal\breakpoint\Breakpoint @group Breakpoint
Namespace
Drupal\Tests\breakpoint\UnitCode
protected function setupBreakpoint() : void {
$this->breakpoint = new Breakpoint([], $this->pluginId, $this->pluginDefinition);
$this->breakpoint
->setStringTranslation($this->stringTranslation);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.