public function PaymentMethodTest::setUp in Payment 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ views/ filter/ PaymentMethodTest.php, line 43
Class
- PaymentMethodTest
- @coversDefaultClass \Drupal\payment\Plugin\views\filter\PaymentMethod
Namespace
Drupal\Tests\payment\Unit\Plugin\views\filterCode
public function setUp() : void {
$this->paymentMethodManager = $this
->createMock(PaymentMethodManagerInterface::class);
$this->paymentMethodPluginType = $this
->prophesize(PluginTypeInterface::class);
$this->paymentMethodPluginType
->getPluginManager()
->willReturn($this->paymentMethodManager);
$configuration = [];
$plugin_id = $this
->randomMachineName();
$plugin_definition = [];
$this->sut = new PaymentMethod($configuration, $plugin_id, $plugin_definition, $this->paymentMethodPluginType
->reveal());
}