function EndpointTest::testCaseSensitiveMatch
Same name and namespace in other branches
- 9 core/modules/media/tests/src/Unit/EndpointTest.php \Drupal\Tests\media\Unit\EndpointTest::testCaseSensitiveMatch()
- 10 core/modules/media/tests/src/Unit/EndpointTest.php \Drupal\Tests\media\Unit\EndpointTest::testCaseSensitiveMatch()
@covers ::matchUrl
File
-
core/
modules/ media/ tests/ src/ Unit/ EndpointTest.php, line 32
Class
- EndpointTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21media%21src%21OEmbed%21Endpoint.php/class/Endpoint/11.x" title="Value object for oEmbed provider endpoints." class="local">\Drupal\media\OEmbed\Endpoint</a>
Namespace
Drupal\Tests\media\UnitCode
public function testCaseSensitiveMatch() : void {
$endpoint = new Endpoint('https://www.example.com/oembed', $this->createMock('\\Drupal\\media\\OEmbed\\Provider'), [
'https://*.example.com/Video/*',
]);
$this->assertTrue($endpoint->matchUrl('https://foo.example.com/Video/bar'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.