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

Public Member Functions

 setup ()
 tearDown ()
 test_construct_dupe_instance ()
 test_caller_with_plugins ()

Protected Member Functions

 setup_caller ($class, $callbackargs, $user=null)

Protected Attributes

 $testtables

Detailed Description

Definition at line 194 of file portfolio_testclass.php.


Member Function Documentation

setup ( )

Definition at line 202 of file portfolio_testclass.php.

Here is the call graph for this function:

setup_caller ( class,
callbackargs,
user = null 
) [protected]

does everything we need to set up a new caller so each subclass doesn't have to implement this

Parameters:
string$classname of caller class to generate (this class def must be already loaded)
array$callbackargsthe arguments to pass the constructor of the caller
int$userida userid the subclass has generated
Returns:
portfolio_caller_base subclass

Definition at line 246 of file portfolio_testclass.php.

tearDown ( )

Reimplemented from UnitTestCaseUsingDatabase.

Reimplemented in testPortfolioPluginDownload.

Definition at line 217 of file portfolio_testclass.php.

Definition at line 262 of file portfolio_testclass.php.

Here is the call graph for this function:

Definition at line 223 of file portfolio_testclass.php.

Here is the call graph for this function:


Field Documentation

$testtables [protected]
Initial value:
 array(
                'lib' => array(
                    'portfolio_instance', 'portfolio_instance_user', 'portfolio_instance_config', 
                        'user', 'course', 'course_categories'))

Definition at line 197 of file portfolio_testclass.php.


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