You are here

public function EntityConditionNormalizerTest::denormalizeProvider in JSON:API 8

Data provider for testDenormalize.

File

tests/src/Kernel/Normalizer/EntityConditionNormalizerTest.php, line 53

Class

EntityConditionNormalizerTest
@coversDefaultClass \Drupal\jsonapi\Normalizer\EntityConditionNormalizer @group jsonapi @group jsonapi_normalizers @group legacy

Namespace

Drupal\Tests\jsonapi\Kernel\Normalizer

Code

public function denormalizeProvider() {
  return [
    [
      [
        'path' => 'some_field',
        'value' => NULL,
        'operator' => '=',
      ],
    ],
    [
      [
        'path' => 'some_field',
        'operator' => '=',
        'value' => 'some_string',
      ],
    ],
    [
      [
        'path' => 'some_field',
        'operator' => '<>',
        'value' => 'some_string',
      ],
    ],
    [
      [
        'path' => 'some_field',
        'operator' => 'NOT BETWEEN',
        'value' => 'some_string',
      ],
    ],
    [
      [
        'path' => 'some_field',
        'operator' => 'BETWEEN',
        'value' => [
          'some_string',
        ],
      ],
    ],
  ];
}