public function ConfigEntityNormalizerTest::normalizeProvider in JSON:API 8
Data provider for the normalize test.
Return value
array The data for the test method.
File
- tests/
src/ Unit/ Normalizer/ ConfigEntityNormalizerTest.php, line 72
Class
- ConfigEntityNormalizerTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\ConfigEntityNormalizer @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\NormalizerCode
public function normalizeProvider() {
return [
[
'lorem',
'lorem',
],
[
[
'ipsum' => 'dolor',
'ra' => 'foo',
],
[
'ipsum' => 'dolor',
'ra' => 'foo',
],
],
[
[
'ipsum' => 'dolor',
],
[
'ipsum' => 'dolor',
],
],
[
[
'lorem' => [
'ipsum' => [
'dolor' => 'sid',
'amet' => 'ra',
],
],
],
[
'lorem' => [
'ipsum' => [
'dolor' => 'sid',
'amet' => 'ra',
],
],
],
],
];
}