public function BreakpointTest::testGetMediaQuery in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 89 - Contains \Drupal\Tests\breakpoint\Unit\BreakpointTest.
Class
- BreakpointTest
- @coversDefaultClass \Drupal\breakpoint\Breakpoint @group Breakpoint
Namespace
Drupal\Tests\breakpoint\UnitCode
public function testGetMediaQuery() {
$this->pluginDefinition['mediaQuery'] = 'only screen and (min-width: 1220px)';
$this
->setupBreakpoint();
$this
->assertEquals('only screen and (min-width: 1220px)', $this->breakpoint
->getMediaQuery());
}