function BreakpointTest::testGetMediaQuery
Same name in other branches
- 9 core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::testGetMediaQuery()
- 8.9.x core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::testGetMediaQuery()
- 11.x core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::testGetMediaQuery()
@covers ::getMediaQuery
File
-
core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php, line 86
Class
- BreakpointTest
- @coversDefaultClass \Drupal\breakpoint\Breakpoint @group Breakpoint
Namespace
Drupal\Tests\breakpoint\UnitCode
public function testGetMediaQuery() : void {
$this->pluginDefinition['mediaQuery'] = 'only screen and (min-width: 1220px)';
$this->setupBreakpoint();
$this->assertEquals('only screen and (min-width: 1220px)', $this->breakpoint
->getMediaQuery());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.