You are here

public function BreakpointTest::testGetMediaQuery in Drupal 9

Same name and namespace in other branches
  1. 8 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 81

Class

BreakpointTest
@coversDefaultClass \Drupal\breakpoint\Breakpoint @group Breakpoint

Namespace

Drupal\Tests\breakpoint\Unit

Code

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());
}