ILIAS
release_8 Revision v8.19
|
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 () | |
disabled More... | |
testCreateList () | |
disabled More... | |
testCreateAllItemsInDraftContainer () | |
disabled More... | |
Protected Member Functions | |
setUp () | |
initDependencies () | |
setGlobalDBAndRepo (ilDBInterface $mock_db, int $webr_id, bool $update_history, int $current_time, array $datetimes) | |
setGlobal (string $name, MockObject $obj) | |
tearDown () | |
getNewDateTimeMock (int $timestamp) | |
Protected Attributes | |
Container | $dic = null |
ilObjUser | $user |
ilWebLinkRepository | $web_link_repo |
Unit tests for ilWebLinkDatabaseRepository.
Definition at line 29 of file ilWebResourceDatabaseRepositoryTest.php.
|
protected |
Definition at line 115 of file ilWebResourceDatabaseRepositoryTest.php.
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 94 of file ilWebResourceDatabaseRepositoryTest.php.
References $c, $DIC, $GLOBALS, and $name.
Referenced by initDependencies(), and setGlobalDBAndRepo().
|
protected |
ilDBInterface&MockObject | $mock_db | |
int | $webr_id | |
bool | $update_history | |
int | $current_time | |
DateTimeImmutable&MockObject[] | $datetimes |
Definition at line 65 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 105 of file ilWebResourceDatabaseRepositoryTest.php.
ilWebResourceDatabaseRepositoryTest::testCreateAllItemsInDraftContainer | ( | ) |
disabled
Definition at line 495 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), setGlobalDBAndRepo(), ILIAS\Repository\user(), and ilWebLinkBaseParameter\VALUES.
ilWebResourceDatabaseRepositoryTest::testCreateExternalItem | ( | ) |
Test creating an item with two intact parameters, and an external link.
disabled
Definition at line 133 of file ilWebResourceDatabaseRepositoryTest.php.
References 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.
disabled
Definition at line 264 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), ilWebLinkDatabaseRepository\ITEMS_TABLE, ilWebLinkDatabaseRepository\PARAMS_TABLE, setGlobalDBAndRepo(), ILIAS\Repository\user(), and ilWebLinkBaseParameter\VALUES.
ilWebResourceDatabaseRepositoryTest::testCreateItemBrokenInternalLinkException | ( | ) |
disabled
Definition at line 376 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), ilWebLinkDatabaseRepository\ITEMS_TABLE, setGlobalDBAndRepo(), and ilWebLinkBaseParameter\VALUES.
ilWebResourceDatabaseRepositoryTest::testCreateList | ( | ) |
disabled
Definition at line 436 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), ilWebLinkDatabaseRepository\LISTS_TABLE, and setGlobalDBAndRepo().
|
protected |
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.