You are here

public function LinkDefaultProtocolTest::testHttpDefaultProtocolOnUrlWithDefinedHttpsProtocol in Link 7

A link with a defined protocol HTTPS overrides the default HTTP protocol.

File

tests/LinkDefaultProtocolTest.test, line 73

Class

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

Code

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