function EntityConditionTest::testValidation
@covers ::validate
      
    
@dataProvider validationProvider
File
- 
              core/modules/ jsonapi/ tests/ src/ Unit/ Query/ EntityConditionTest.php, line 78 
Class
- EntityConditionTest
- @coversDefaultClass \Drupal\jsonapi\Query\EntityCondition[[api-linebreak]] @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\QueryCode
public function testValidation($input, $exception) : void {
  if ($exception) {
    $this->expectException(get_class($exception));
    $this->expectExceptionMessage($exception->getMessage());
  }
  EntityCondition::createFromQueryParameter($input);
  $this->assertNull($exception, 'No exception was expected.');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
