public function LinkDefaultProtocolTest::testHttpDefaultProtocolOnUrlWithoutDefinedProtocol in Link 7
A link without a default protocol uses the default (HTTP).
File
- tests/
LinkDefaultProtocolTest.test, line 29
Class
- LinkDefaultProtocolTest
- Test setting a global protocol, and using it for links when needed.
Code
public function testHttpDefaultProtocolOnUrlWithoutDefinedProtocol() {
$user = $this
->drupalCreateUser($this->permissions);
$this
->drupalLogin($user);
$this
->createNodeWithLink('www.example.com');
$this
->drupalGet('node/1');
$this
->assertRaw('http://www.example.com');
}