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