Moodle  2.2.1
http://www.collinsharper.com
rating_db_test Class Reference
Inheritance diagram for rating_db_test:
Collaboration diagram for rating_db_test:

Public Member Functions

 setUp ()
 tearDown ()
 test_get_ratings_sql ()

Static Public Attributes

static $includecoverage

Protected Attributes

 $testtables
 $syscontext
 $neededcaps = array('view', 'viewall', 'viewany', 'rate')
 $originaldefaultfrontpageroleid

Detailed Description

Unit test case for all the rating/lib.php requiring DB mockup & manipulation

Definition at line 34 of file testrating.php.


Member Function Documentation

setUp ( )

Definition at line 48 of file testrating.php.

Here is the call graph for this function:

tearDown ( )

Reimplemented from UnitTestCaseUsingDatabase.

Definition at line 72 of file testrating.php.

Test the current get_ratings method main sql

Definition at line 92 of file testrating.php.

Here is the call graph for this function:


Field Documentation

$includecoverage [static]
Initial value:
 array(
        'rating/lib.php'
    )

Definition at line 36 of file testrating.php.

$neededcaps = array('view', 'viewall', 'viewany', 'rate') [protected]

Definition at line 45 of file testrating.php.

$originaldefaultfrontpageroleid [protected]

Definition at line 46 of file testrating.php.

$syscontext [protected]

Definition at line 44 of file testrating.php.

$testtables [protected]
Initial value:
 array(
            'lib' => array(
                'rating', 'scale', 'context', 'capabilities', 'role_assignments', 'role_capabilities', 'course'))

Definition at line 40 of file testrating.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations