Protected Member Functions |
| setUp () |
Detailed Description
Definition at line 24 of file ilXHTMLPageTest.php.
Member Function Documentation
ilXHTMLPageTest::setUp |
( |
| ) |
|
|
protected |
ilXHTMLPageTest::testSetGetSettings |
( |
| ) |
|
Definition at line 34 of file ilXHTMLPageTest.php.
References ilXHTMLPage\_lookupContent(), and ilXHTMLPage\_lookupSavedContent().
{
include_once("./Services/XHTMLPage/classes/class.ilXHTMLPage.php");
$page->setContent("aaa");
$page->save();
$page_id = $page->getId();
if ($page->getContent() == "aaa")
{
$result.= "saveread-";
}
$page->setContent("bbb");
$page->save();
{
$result.= "lookupContent-";
}
{
$result.= "lookupSavedContent-";
}
$page->undo();
{
$result.= "undo1-";
}
{
$result.= "undo2-";
}
$page->clear();
{
$result.= "clear1-";
}
{
$result.= "clear2-";
}
$this->assertEquals("saveread-lookupContent-lookupSavedContent-undo1-undo2-clear1-clear2-", $result);
}
Field Documentation
ilXHTMLPageTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: