You are here

public function LinkDefaultProtocolTest::testHttpsDefaultProtocolOnUrlWithoutDefinedProtocol in Link 7

A link with no defined protocol in the URL uses the default (HTTPS).

File

tests/LinkDefaultProtocolTest.test, line 60

Class

LinkDefaultProtocolTest
Test setting a global protocol, and using it for links when needed.

Code

public function testHttpsDefaultProtocolOnUrlWithoutDefinedProtocol() {
  $this
    ->setupDefaultProtocol(LINK_HTTPS_PROTOCOL);
  $this
    ->createNodeWithLink('www.example.com');
  $this
    ->drupalGet('node/1');
  $this
    ->assertRaw('https://www.example.com');
}