function BreakpointTest::testGetLabel
Tests get label.
@legacy-covers ::getLabel
File
-
core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php, line 72
Class
Namespace
Drupal\Tests\breakpoint\UnitCode
public function testGetLabel() : void {
$this->pluginDefinition['label'] = 'Test label';
$this->setupBreakpoint();
$this->assertEquals(new TranslatableMarkup('Test label', [], [
'context' => 'breakpoint',
], $this->stringTranslation), $this->breakpoint
->getLabel());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.