You are here

public function PaymentMethodConfigurationAccessControlHandlerTest::testGetCache in Payment 8.2

@covers ::getCache

File

tests/src/Unit/Entity/PaymentMethodConfiguration/PaymentMethodConfigurationAccessControlHandlerTest.php, line 330

Class

PaymentMethodConfigurationAccessControlHandlerTest
@coversDefaultClass \Drupal\payment\Entity\PaymentMethodConfiguration\PaymentMethodConfigurationAccessControlHandler

Namespace

Drupal\Tests\payment\Unit\Entity\PaymentMethodConfiguration

Code

public function testGetCache() {
  $account = $this
    ->createMock(AccountInterface::class);
  $cache_id = $this
    ->randomMachineName();
  $operation = $this
    ->randomMachineName();
  $language_code = $this
    ->randomMachineName();
  $class = new \ReflectionClass($this->sut);
  $method = $class
    ->getMethod('getCache');
  $method
    ->setAccessible(TRUE);
  $this
    ->assertNull($method
    ->invokeArgs($this->sut, [
    $cache_id,
    $operation,
    $language_code,
    $account,
  ]));
}