function UserpointsAPITestCase::testGetCategories in User Points 7
Tests the userpoints_get_categories() function.
File
- tests/
userpoints_api.test, line 579 - Contains test classes for userpoints module.
Class
- UserpointsAPITestCase
- API Tests.
Code
function testGetCategories() {
$cats = userpoints_get_categories();
$this
->assertTrue(is_array($cats), 'Successfully verified userpoints_get_categories() returned an array');
}