Commit 312aa7cf authored by alexpott's avatar alexpott

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

Issue #2409339 by pbull: ViewExecutableTest::testPropertyMethods fails when randomly generated URL contains placeholders
parent a2ea305b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment