ILIAS  eassessment Revision 61809
 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.
 testWebResourceParameters ()

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.

References ilUnitUtil\performInitialisation().

{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
}

+ Here is the call graph for this function:

ilwebresourceTest::testLinkCheck ( )

Link check test.

Parameters
@return

Definition at line 48 of file ilWebResourceTest.php.

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

{
global $ilDB;
include_once './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 ( )

Definition at line 70 of file ilWebResourceTest.php.

References $data, and 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: