Skip to content
Snippets Groups Projects
Commit 312aa7cf authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2409339 by pbull: ViewExecutableTest::testPropertyMethods fails when...

Issue #2409339 by pbull: ViewExecutableTest::testPropertyMethods fails when randomly generated URL contains placeholders
parent a2ea305b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -320,14 +320,14 @@ public function testPropertyMethods() {
$this->assertEqual($view->getPath(), $override_path);
// Test the getUrl method().
$url = $this->randomString();
$url = 'foo';
$this->assertEqual($view->getUrl(NULL, $url), $url);
// Test with arguments.
$arg1 = $this->randomString();
$arg2 = rand();
$arg1 = 'bar';
$arg2 = 12345;
$this->assertEqual($view->getUrl(array($arg1, $arg2), $url), "$url/$arg1/$arg2");
// Test the override_url property override.
$override_url = $this->randomString();
$override_url = 'baz';
$view->override_url = $override_url;
$this->assertEqual($view->getUrl(NULL, $url), $override_url);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment