public function PaymentLineItemLabelTest::setUp in Payment 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ views/ field/ PaymentLineItemLabelTest.php, line 37
Class
- PaymentLineItemLabelTest
- @coversDefaultClass \Drupal\payment\Plugin\views\field\PaymentLineItemLabel
Namespace
Drupal\Tests\payment\Unit\Plugin\views\fieldCode
public function setUp() : void {
$this->paymentLineItemManager = $this
->createMock(PaymentLineItemManagerInterface::class);
$configuration = [];
$plugin_id = $this
->randomMachineName();
$plugin_definition = [];
$this->sut = new PaymentLineItemLabel($configuration, $plugin_id, $plugin_definition, $this->paymentLineItemManager);
$options = [
'relationship' => 'none',
];
$view_executable = $this
->getMockBuilder(ViewExecutable::class)
->disableOriginalConstructor()
->getMock();
$display = $this
->getMockBuilder(DisplayPluginBase::class)
->disableOriginalConstructor()
->getMockForAbstractClass();
$this->sut
->init($view_executable, $display, $options);
}