public function SetStatusTest::testAccessWithPaymentAsBoolean in Payment 8.2
@covers ::access
File
- tests/
src/ Unit/ Plugin/ Action/ SetStatusTest.php, line 257
Class
- SetStatusTest
- @coversDefaultClass \Drupal\payment\Plugin\Action\SetStatus
Namespace
Drupal\Tests\payment\Unit\Plugin\ActionCode
public function testAccessWithPaymentAsBoolean() {
$account = $this
->createMock(AccountInterface::class);
$payment = $this
->createMock(PaymentInterface::class);
$payment
->expects($this
->atLeastOnce())
->method('access')
->with('update', $account)
->willReturn(TRUE);
$this
->assertTrue($this->sut
->access($payment, $account));
}