You are here

private function ContentEntityNormalizerTest::doTestValidResultForOneEntity in Acquia Content Hub 8

Check if the base result set is correctly set to 1 entity.

13 calls to ContentEntityNormalizerTest::doTestValidResultForOneEntity()
ContentEntityNormalizerTest::testNormalizeImageReferenceField in tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php
Tests the normalize() method for image references.
ContentEntityNormalizerTest::testNormalizeOneField in tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php
Tests the normalize() method.
ContentEntityNormalizerTest::testNormalizeOneFieldMultiValued in tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php
Tests the normalize() method.
ContentEntityNormalizerTest::testNormalizeReferenceField in tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php
Tests the normalize() method.
ContentEntityNormalizerTest::testNormalizeTypeReferenceField in tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php
Tests the normalize() method.

... See full list

File

tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php, line 783

Class

ContentEntityNormalizerTest
PHPUnit test for the ContentEntityNormalizer class.

Namespace

Drupal\Tests\acquia_contenthub\Unit\Normalizer

Code

private function doTestValidResultForOneEntity($normalized) {

  // Start testing our result set.
  $this
    ->assertArrayHasKey('entities', $normalized);

  // We want 1 result in there.
  $this
    ->assertCount(1, $normalized['entities']);
}