You are here

public function ViewPaymentsByOwnerTest::xtestValidateArgumentWithoutValidEntities in Payment 8.2

@covers ::validateArgument

File

tests/src/Unit/Plugin/views/argument_validator/ViewPaymentsByOwnerTest.php, line 85

Class

ViewPaymentsByOwnerTest
@coversDefaultClass \Drupal\payment\Plugin\views\argument_validator\ViewPaymentsByOwner

Namespace

Drupal\Tests\payment\Unit\Plugin\views\argument_validator

Code

public function xtestValidateArgumentWithoutValidEntities() {
  $entity_storage = $this
    ->createMock(EntityStorageInterface::class);
  $entity_storage
    ->expects($this
    ->atLeastOnce())
    ->method('loadMultiple')
    ->willReturn([]);
  $this->entityTypeManager
    ->expects($this
    ->atLeastOnce())
    ->method('getStorage')
    ->with($this->pluginDefinition['entity_type'])
    ->willReturn($entity_storage);
  $argument = mt_rand();
  $this
    ->assertFalse($this->sut
    ->validateArgument($argument));
}