function OEmbedIframeControllerTest::providerBadHashParameter

Same name in other branches
  1. 9 core/modules/media/tests/src/Kernel/OEmbedIframeControllerTest.php \Drupal\Tests\media\Kernel\OEmbedIframeControllerTest::providerBadHashParameter()
  2. 8.9.x core/modules/media/tests/src/Kernel/OEmbedIframeControllerTest.php \Drupal\Tests\media\Kernel\OEmbedIframeControllerTest::providerBadHashParameter()
  3. 11.x 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 32

Class

OEmbedIframeControllerTest
@coversDefaultClass \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.