function ShoutboxBaseTestCase::getAllShoutIds in Shoutbox 7
Same name and namespace in other branches
- 7.2 shoutbox.test \ShoutboxBaseTestCase::getAllShoutIds()
Returns an array of all shout ids.
1 call to ShoutboxBaseTestCase::getAllShoutIds()
- ShoutboxModerateTestCase::testShoutboxModerateForm in ./
shoutbox.test - Test that we can moderate a shout.
File
- ./
shoutbox.test, line 68 - Shoutbox testing.
Class
- ShoutboxBaseTestCase
- @file Shoutbox testing.
Code
function getAllShoutIds() {
$result = db_query_range('SELECT shout_id FROM {shoutbox}', array(), 20);
$ids = array();
foreach ($result as $id) {
$ids[] = $id->shout_id;
}
// debug($ids);
return $ids;
}