function ShurlyTestCase::getNbUrlsShrinked in ShURLy 7
Return the number of URLs shrinked.
Return value
Number of URLs in {shurly}.
1 call to ShurlyTestCase::getNbUrlsShrinked()
- ShurlyTestCase::testHashEditedUrl in ./
shurly.test - Test that, when editing a destination URL, the hash is updated accordingly.
File
- ./
shurly.test, line 106 - Tests for the Shurly module.
Class
- ShurlyTestCase
- Shurly tests.
Code
function getNbUrlsShrinked() {
return db_select('shurly', 's')
->fields('s')
->countQuery()
->execute()
->fetchField();
}