function BreakpointTest::setupBreakpoint

Same name and namespace in other branches
  1. 11.x 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 57

Class

BreakpointTest
@coversDefaultClass \Drupal\breakpoint\Breakpoint[[api-linebreak]] @group Breakpoint

Namespace

Drupal\Tests\breakpoint\Unit

Code

protected function setupBreakpoint() {
  $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.