public function PaymentLineItemManagerTest::testGetDefinitions in Payment 8.2
@covers ::getDefinitions
File
- tests/
src/ Unit/ Plugin/ Payment/ LineItem/ PaymentLineItemManagerTest.php, line 83
Class
- PaymentLineItemManagerTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemManager
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\LineItemCode
public function testGetDefinitions() {
$definitions = array(
'foo' => array(
'label' => $this
->randomMachineName(),
),
);
$this->discovery
->expects($this
->once())
->method('getDefinitions')
->willReturn($definitions);
$this->moduleHandler
->expects($this
->once())
->method('alter')
->with('payment_line_item');
$this
->assertSame($definitions, $this->sut
->getDefinitions());
}