function EntityTestTextItemNormalizerTest::providerTestGetWithFormat

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestTextItemNormalizerTest::providerTestGetWithFormat()
  2. 10 core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestTextItemNormalizerTest::providerTestGetWithFormat()
  3. 9 core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestTextItemNormalizerTest::providerTestGetWithFormat()
  4. 8.9.x core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestTextItemNormalizerTest::providerTestGetWithFormat()

Provides test cases for text format retrieval with expected cache tags.

File

core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php, line 195

Class

EntityTestTextItemNormalizerTest
Tests EntityTest Text Item Normalizer.

Namespace

Drupal\Tests\entity_test\Functional\Rest

Code

public static function providerTestGetWithFormat() {
  return [
    'format specified (different from fallback format)' => [
      'pablo',
      [
        'config:filter.format.pablo',
      ],
    ],
    'format specified (happens to be the same as fallback format)' => [
      'plain_text',
      [
        'config:filter.format.plain_text',
      ],
    ],
    'no format specified: fallback format used automatically' => [
      FALSE,
      [
        'config:filter.format.plain_text',
        'config:filter.settings',
      ],
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.