public function MultiresponseJsonNormalizerTest::dataProviderSupportsNormalization in Subrequests 3.x
Same name and namespace in other branches
- 8.2 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\NormalizerCode
public function dataProviderSupportsNormalization() {
return [
[
[
Response::create(''),
],
'json',
TRUE,
],
[
[],
'json',
TRUE,
],
[
[
Response::create(''),
],
'fail',
FALSE,
],
[
NULL,
'json',
FALSE,
],
[
[
Response::create(''),
NULL,
],
'json',
FALSE,
],
];
}