public function ViewsAtomTestCase::vaRandomPublishStatus in Views Atom 6
Get a random publish status
Return value
publish status value
File
- tests/
views_atom.test, line 210 - Simple tests for views_atom
Class
- ViewsAtomTestCase
- Tests basic set up for publishing and consuming
Code
public function vaRandomPublishStatus() {
$statuses = array(
SYNDICATOR_PUBLISH_NO,
SYNDICATOR_PUBLISH_YES,
);
$random_key = array_rand($statuses);
return $statuses[$random_key];
}