You are here

public function PaymentStatusFormTest::testActions in Payment 8.2

@covers ::actions

File

tests/src/Unit/Entity/Payment/PaymentStatusFormTest.php, line 324

Class

PaymentStatusFormTest
@coversDefaultClass \Drupal\payment\Entity\Payment\PaymentStatusForm

Namespace

Drupal\Tests\payment\Unit\Entity\Payment

Code

public function testActions() {
  $form = [];
  $form_state = $this
    ->createMock(FormStateInterface::class);
  $method = new \ReflectionMethod($this->sut, 'actions');
  $method
    ->setAccessible(TRUE);
  $actions = $method
    ->invokeArgs($this->sut, array(
    $form,
    $form_state,
  ));
  $this
    ->assertIsArray($actions);
}