You are here

public function EntityTestTextItemNormalizerTest::providerTestGetWithFormat in Drupal 10

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

File

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

Class

EntityTestTextItemNormalizerTest
@group rest

Namespace

Drupal\Tests\entity_test\Functional\Rest

Code

public 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',
      ],
    ],
  ];
}