You are here

public function OEmbedIframeControllerTest::providerBadHashParameter in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/tests/src/Kernel/OEmbedIframeControllerTest.php \Drupal\Tests\media\Kernel\OEmbedIframeControllerTest::providerBadHashParameter()

Data provider for testBadHashParameter().

Return value

array

File

core/modules/media/tests/src/Kernel/OEmbedIframeControllerTest.php, line 28

Class

OEmbedIframeControllerTest
@coversDefaultClass \Drupal\media\Controller\OEmbedIframeController

Namespace

Drupal\Tests\media\Kernel

Code

public function providerBadHashParameter() {
  return [
    'no hash' => [
      '',
    ],
    'invalid hash' => [
      $this
        ->randomString(),
    ],
  ];
}