ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Unit tests for ilWebLinkDatabaseRepository. More...
Public Member Functions | |
testCreateExternalItem () | |
Test creating an item with two intact parameters, and an external link. More... | |
testCreateInternalItemWithBrokenParameter () | |
Test creating an item with one intact and one broken parameter, and an internal link. More... | |
testCreateItemBrokenInternalLinkException () | |
testCreateList () | |
testCreateAllItemsInDraftContainer () | |
Protected Member Functions | |
setUp () | |
initDependencies () | |
setGlobalDBAndRepo (ilDBInterface $mock_db, int $webr_id, int $current_time, array $datetimes) | |
setGlobal (string $name, MockObject $obj) | |
tearDown () | |
getNewDateTimeMock (int $timestamp) | |
Protected Attributes | |
Container | $dic = null |
ilObjUser | $user |
ilWebLinkRepository &MockObject | $web_link_repo |
Unit tests for ilWebLinkDatabaseRepository.
Definition at line 29 of file ilWebResourceDatabaseRepositoryTest.php.
|
protected |
Definition at line 117 of file ilWebResourceDatabaseRepositoryTest.php.
References $datetime.
Referenced by testCreateAllItemsInDraftContainer(), testCreateExternalItem(), testCreateInternalItemWithBrokenParameter(), testCreateItemBrokenInternalLinkException(), and testCreateList().
|
protected |
Definition at line 41 of file ilWebResourceDatabaseRepositoryTest.php.
References $DIC, $GLOBALS, $user, setGlobal(), and ILIAS\Repository\user().
Referenced by setUp().
|
protected |
Definition at line 96 of file ilWebResourceDatabaseRepositoryTest.php.
References $c, $DIC, and $GLOBALS.
Referenced by initDependencies(), and setGlobalDBAndRepo().
|
protected |
ilDBInterface&MockObject | $mock_db | |
int | $webr_id | |
int | $current_time | |
DateTimeImmutable&MockObject[] | $datetimes |
Definition at line 64 of file ilWebResourceDatabaseRepositoryTest.php.
References setGlobal().
Referenced by testCreateAllItemsInDraftContainer(), testCreateExternalItem(), testCreateInternalItemWithBrokenParameter(), testCreateItemBrokenInternalLinkException(), and testCreateList().
|
protected |
Definition at line 35 of file ilWebResourceDatabaseRepositoryTest.php.
References initDependencies().
|
protected |
Definition at line 107 of file ilWebResourceDatabaseRepositoryTest.php.
ilWebResourceDatabaseRepositoryTest::testCreateAllItemsInDraftContainer | ( | ) |
Definition at line 468 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), null, setGlobalDBAndRepo(), ILIAS\Repository\user(), and ilWebLinkBaseParameter\VALUES.
ilWebResourceDatabaseRepositoryTest::testCreateExternalItem | ( | ) |
Test creating an item with two intact parameters, and an external link.
Definition at line 135 of file ilWebResourceDatabaseRepositoryTest.php.
References $data, getNewDateTimeMock(), ilWebLinkDatabaseRepository\ITEMS_TABLE, ilWebLinkDatabaseRepository\PARAMS_TABLE, setGlobalDBAndRepo(), ILIAS\Repository\user(), and ilWebLinkBaseParameter\VALUES.
ilWebResourceDatabaseRepositoryTest::testCreateInternalItemWithBrokenParameter | ( | ) |
Test creating an item with one intact and one broken parameter, and an internal link.
Definition at line 261 of file ilWebResourceDatabaseRepositoryTest.php.
References $data, getNewDateTimeMock(), ilWebLinkDatabaseRepository\ITEMS_TABLE, ilWebLinkDatabaseRepository\PARAMS_TABLE, setGlobalDBAndRepo(), ILIAS\Repository\user(), and ilWebLinkBaseParameter\VALUES.
ilWebResourceDatabaseRepositoryTest::testCreateItemBrokenInternalLinkException | ( | ) |
Definition at line 365 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), ilWebLinkDatabaseRepository\ITEMS_TABLE, setGlobalDBAndRepo(), and ilWebLinkBaseParameter\VALUES.
ilWebResourceDatabaseRepositoryTest::testCreateList | ( | ) |
Definition at line 417 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), ilWebLinkDatabaseRepository\LISTS_TABLE, null, and setGlobalDBAndRepo().
Definition at line 31 of file ilWebResourceDatabaseRepositoryTest.php.
Referenced by tearDown().
|
protected |
Definition at line 32 of file ilWebResourceDatabaseRepositoryTest.php.
Referenced by initDependencies().
|
protected |
Definition at line 33 of file ilWebResourceDatabaseRepositoryTest.php.