You are here

protected function BreakpointTest::setupBreakpoint in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::setupBreakpoint()
  2. 9 core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::setupBreakpoint()

Sets up the breakpoint defaults.

File

core/modules/breakpoint/tests/src/Unit/BreakpointTest.php, line 54

Class

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

Namespace

Drupal\Tests\breakpoint\Unit

Code

protected function setupBreakpoint() {
  $this->breakpoint = new Breakpoint([], $this->pluginId, $this->pluginDefinition);
  $this->breakpoint
    ->setStringTranslation($this->stringTranslation);
}