function OEmbedIframeControllerTest::providerBadHashParameter

Data provider for testBadHashParameter().

Return value

array An array of test cases.

File

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

Class

OEmbedIframeControllerTest
Tests Drupal\media\Controller\OEmbedIframeController.

Namespace

Drupal\Tests\media\Kernel

Code

public static function providerBadHashParameter() {
  return [
    'no hash' => [
      '',
    ],
    'invalid hash' => [
      Random::string(),
    ],
  ];
}

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