You are here

public function PaymentStatusTest::setUp in Payment 8.2

Same name in this branch
  1. 8.2 tests/src/Unit/Entity/PaymentStatusTest.php \Drupal\Tests\payment\Unit\Entity\PaymentStatusTest::setUp()
  2. 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\filter

Code

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());
}