You are here

public function LinkFieldSerializerTest::emptyDataCases in Acquia Content Hub 8.2

Provides cases when empty field data should be returned.

Return value

array The test cases.

File

tests/src/Kernel/EventSubscriber/SerializeContentField/LinkFieldSerializerTest.php, line 170

Class

LinkFieldSerializerTest
Tests Link Field Serialization.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\SerializeContentField

Code

public function emptyDataCases() : array {
  return [
    [
      'link',
      'No link has been added to the node.',
    ],
    [
      'body',
      'The field is not link type, data is empty.',
    ],
  ];
}