You are here

public function LinkValidationApiTest::testValidateEmailLinkBad in Link 7

Validate Email Link Bad.

File

tests/LinkValidationApiTest.test, line 92
Validate the link_validate_url() validation API.

Class

LinkValidationApiTest
Validate the link_validate_url() validation API.

Code

public function testValidateEmailLinkBad() {
  $valid = link_validate_url(':bob@example.com');
  $this
    ->assertEqual(FALSE, $valid, 'Make sure just a bad address is correctly failed');
}