You are here

public function UrlTest::testFromInvalidInternalUri in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testFromInvalidInternalUri()

Tests the fromUri() method with an invalid internal: URI.

@covers ::fromUri @expectedException \InvalidArgumentException @dataProvider providerFromInvalidInternalUri

File

core/tests/Drupal/Tests/Core/UrlTest.php, line 722
Contains \Drupal\Tests\Core\UrlTest.

Class

UrlTest
@coversDefaultClass \Drupal\Core\Url @group UrlTest

Namespace

Drupal\Tests\Core

Code

public function testFromInvalidInternalUri($path) {
  Url::fromUri('internal:' . $path);
}