ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilwebresourceTest Class Reference

Unit tests for tree table. More...

+ Inheritance diagram for ilwebresourceTest:
+ Collaboration diagram for ilwebresourceTest:

Public Member Functions

 testLinkCheck ()
 Link check test IL_Init.
 testWebResourceParameters ()
 IL_Init

Protected Member Functions

 setUp ()

Protected Attributes

 $backupGlobals = FALSE

Detailed Description

Unit tests for tree table.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 33 of file ilWebResourceTest.php.

Member Function Documentation

ilwebresourceTest::setUp ( )
protected

Definition at line 37 of file ilWebResourceTest.php.

{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
ilwebresourceTest::testLinkCheck ( )

Link check test IL_Init.

Parameters
@return

Definition at line 49 of file ilWebResourceTest.php.

References $ret, ilLinkCheckNotify\_deleteObject(), ilLinkCheckNotify\_getNotifiers(), and ilLinkCheckNotify\_getNotifyStatus().

{
global $ilDB;
include_once './Services/LinkChecker/classes/class.ilLinkCheckNotify.php';
$not = new ilLinkCheckNotify($ilDB);
$not->setObjId(99999);
$not->setUserId(13);
$ret = $not->addNotifier();
$this->assertEquals($ret,true);
$this->assertEquals($status,true);
$notifiers = ilLinkCheckNotify::_getNotifiers(99999);
$this->assertEquals($notifiers,array(13));
$this->assertEquals($del,true);
}

+ Here is the call graph for this function:

ilwebresourceTest::testWebResourceParameters ( )

IL_Init

Definition at line 74 of file ilWebResourceTest.php.

References ilParameterAppender\_getParams().

{
include_once './Modules/WebResource/classes/class.ilParameterAppender.php';
$appender = new ilParameterAppender(999);
$appender->setName('first');
$appender->setValue(1);
$appender->add(888);
foreach($params as $key => $data)
{
$appender->delete($key);
$this->assertEquals($data['name'],'first');
$this->assertEquals($data['value'],1);
}
}

+ Here is the call graph for this function:

Field Documentation

ilwebresourceTest::$backupGlobals = FALSE
protected

Definition at line 35 of file ilWebResourceTest.php.


The documentation for this class was generated from the following file: