|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Unit tests for ilWebLinkDatabaseRepository. More...
Inheritance diagram for ilWebResourceDatabaseRepositoryTest:
Collaboration diagram for ilWebResourceDatabaseRepositoryTest: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.
References $datetime.
Referenced by testCreateAllItemsInDraftContainer(), testCreateExternalItem(), testCreateInternalItemWithBrokenParameter(), testCreateItemBrokenInternalLinkException(), and testCreateList().
Here is the caller graph for this function:
|
protected |
Definition at line 41 of file ilWebResourceDatabaseRepositoryTest.php.
References $DIC, $GLOBALS, $user, setGlobal(), and ILIAS\Repository\user().
Referenced by setUp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 94 of file ilWebResourceDatabaseRepositoryTest.php.
References Vendor\Package\$c, $DIC, and $GLOBALS.
Referenced by initDependencies(), and setGlobalDBAndRepo().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 35 of file ilWebResourceDatabaseRepositoryTest.php.
References initDependencies().
Here is the call graph for this function:
|
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.
Here is the call graph for this function:| 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.
Here is the call graph for this function:| 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.
Here is the call graph for this function:| ilWebResourceDatabaseRepositoryTest::testCreateItemBrokenInternalLinkException | ( | ) |
disabled
Definition at line 376 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), ilWebLinkDatabaseRepository\ITEMS_TABLE, setGlobalDBAndRepo(), and ilWebLinkBaseParameter\VALUES.
Here is the call graph for this function:| ilWebResourceDatabaseRepositoryTest::testCreateList | ( | ) |
disabled
Definition at line 436 of file ilWebResourceDatabaseRepositoryTest.php.
References getNewDateTimeMock(), ilWebLinkDatabaseRepository\LISTS_TABLE, and setGlobalDBAndRepo().
Here is the call graph for this function:
|
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.