You are here

public function MultiresponseJsonNormalizerTest::dataProviderSupportsNormalization in Subrequests 8.2

Same name and namespace in other branches
  1. 3.x tests/src/Unit/Normalizer/MultiresponseJsonNormalizerTest.php \Drupal\Tests\subrequests\Normalizer\MultiresponseJsonNormalizerTest::dataProviderSupportsNormalization()

File

tests/src/Unit/Normalizer/MultiresponseJsonNormalizerTest.php, line 35

Class

MultiresponseJsonNormalizerTest
@coversDefaultClass \Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer @group subrequests

Namespace

Drupal\Tests\subrequests\Normalizer

Code

public function dataProviderSupportsNormalization() {
  return [
    [
      [
        Response::create(''),
      ],
      'json',
      TRUE,
    ],
    [
      [],
      'json',
      TRUE,
    ],
    [
      [
        Response::create(''),
      ],
      'fail',
      FALSE,
    ],
    [
      NULL,
      'json',
      FALSE,
    ],
    [
      [
        Response::create(''),
        NULL,
      ],
      'json',
      FALSE,
    ],
  ];
}