You are here

public function SetStatusTest::testAccessWithoutPaymentAsObject in Payment 8.2

@covers ::access

File

tests/src/Unit/Plugin/Action/SetStatusTest.php, line 272

Class

SetStatusTest
@coversDefaultClass \Drupal\payment\Plugin\Action\SetStatus

Namespace

Drupal\Tests\payment\Unit\Plugin\Action

Code

public function testAccessWithoutPaymentAsObject() {
  $account = $this
    ->createMock(AccountInterface::class);
  $access_result = $this->sut
    ->access(NULL, $account, TRUE);
  $this
    ->assertFalse($access_result
    ->isAllowed());
}