public function PaymentLineItemsDisplayTest::testGetInfo in Payment 8.2
@covers ::getInfo
File
- tests/
src/ Unit/ Element/ PaymentLineItemsDisplayTest.php, line 88
Class
- PaymentLineItemsDisplayTest
- @coversDefaultClass \Drupal\payment\Element\PaymentLineItemsDisplay
Namespace
Drupal\Tests\payment\Unit\ElementCode
public function testGetInfo() {
$info = $this->sut
->getInfo();
$this
->assertIsArray($info);
foreach ($info['#pre_render'] as $callback) {
$this
->assertTrue(is_callable($callback));
}
}