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. 10 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 19

Class

OEmbedIframeControllerTest
@coversDefaultClass \Drupal\media\Controller\OEmbedIframeController

Namespace

Drupal\Tests\media\Kernel

Code

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

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