Commit 9e9ee75b authored by alexpott's avatar alexpott

Issue #2581557 by dawehner, mxh, xjm, sorabh.v6, JeroenT: Add ltrim($path, '/') in drupalGet method

parent abc6c6a3
...@@ -67,6 +67,21 @@ public function testGoTo() { ...@@ -67,6 +67,21 @@ public function testGoTo() {
$this->assertSame('header value', $returned_header); $this->assertSame('header value', $returned_header);
} }
/**
* Tests drupalGet().
*/
public function testDrupalGet() {
$this->drupalGet('test-page');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->addressEquals('test-page');
$this->drupalGet('/test-page');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->addressEquals('test-page');
$this->drupalGet('/test-page/');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->addressEquals('/test-page/');
}
/** /**
* Tests basic form functionality. * Tests basic form functionality.
*/ */
......
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