function CurrencyLocaleListBuilderTest::testBuildRow in Currency 8.3
@covers ::buildRow
File
- tests/
src/ Unit/ Entity/ CurrencyLocale/ CurrencyLocaleListBuilderTest.php, line 114
Class
- CurrencyLocaleListBuilderTest
- @coversDefaultClass \Drupal\currency\Entity\CurrencyLocale\CurrencyLocaleListBuilder
Namespace
Drupal\Tests\currency\Unit\Entity\CurrencyLocaleCode
function testBuildRow() {
$entity_label = $this
->randomMachineName();
$currency_locale = $this
->createMock(CurrencyLocaleInterface::class);
$currency_locale
->expects($this
->any())
->method('label')
->willReturn($entity_label);
$this->moduleHandler
->expects($this
->any())
->method('invokeAll')
->willReturn([]);
$row = $this->sut
->buildRow($currency_locale);
$expected = array(
'label' => $entity_label,
'operations' => array(
'data' => array(
'#type' => 'operations',
'#links' => array(),
),
),
);
$this
->assertSame($expected, $row);
}