public function PaymentListBuilderTest::testBuildOperations in Payment 8.2
@covers ::buildOperations
File
- tests/
src/ Unit/ Entity/ Payment/ PaymentListBuilderTest.php, line 129
Class
- PaymentListBuilderTest
- @coversDefaultClass \Drupal\payment\Entity\Payment\PaymentListBuilder
Namespace
Drupal\Tests\payment\Unit\Entity\PaymentCode
public function testBuildOperations() {
$this->moduleHandler
->expects($this
->any())
->method('invokeAll')
->willReturn([]);
$payment = $this
->createMock(PaymentInterface::class);
$expected_build = array(
'#type' => 'operations',
'#links' => [],
'#attached' => array(
'library' => array(
'core/drupal.ajax',
),
),
);
$this
->assertSame($expected_build, $this->sut
->buildOperations($payment));
}