public function BreakpointTest::testGetLabel in Drupal 8
Same name and namespace in other branches
- 9 core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::testGetLabel()
- 10 core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::testGetLabel()
@covers ::getLabel
File
- core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php, line 62
Class
- BreakpointTest
- @coversDefaultClass \Drupal\breakpoint\Breakpoint @group Breakpoint
Namespace
Drupal\Tests\breakpoint\UnitCode
public function testGetLabel() {
$this->pluginDefinition['label'] = 'Test label';
$this
->setupBreakpoint();
$this
->assertEquals(new TranslatableMarkup('Test label', [], [
'context' => 'breakpoint',
], $this->stringTranslation), $this->breakpoint
->getLabel());
}