You are here

function LinkCheckerInterfaceTest::getLinkCheckerLink in Link checker 7

Get linkchecker link by url.

Parameters

string $url: URL of the link to find.

Return value

object The link object.

2 calls to LinkCheckerInterfaceTest::getLinkCheckerLink()
LinkCheckerInterfaceTest::testLinkCheckerCreateBlockWithBrokenLinks in ./linkchecker.test
LinkCheckerInterfaceTest::testLinkCheckerCreateNodeWithBrokenLinks in ./linkchecker.test

File

./linkchecker.test, line 583
Test file for Link checker module.

Class

LinkCheckerInterfaceTest

Code

function getLinkCheckerLink($url) {
  return db_query('SELECT * FROM {linkchecker_link} WHERE urlhash = :urlhash', array(
    ':urlhash' => drupal_hash_base64($url),
  ))
    ->fetchObject();
}