You are here

public function LinkDefaultProtocolTest::testHttpsDefaultProtocolOnUrlWithDefinedHttpProtocol in Link 7

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

File

tests/LinkDefaultProtocolTest.test, line 86

Class

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

Code

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