|
|
|
@ -8,18 +8,111 @@ class TestMainApi extends UnitTestCase { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// todo function testApiProtectCourseScriptReturnsFalse() |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function test_ |
|
|
|
|
// todo function testApiProtectAdminScriptReturnsFalse() |
|
|
|
|
// todo function testApiBlockAnonymousUsers() |
|
|
|
|
// todo function testApiGetNavigatorReturnArray($name,$version) |
|
|
|
|
// todo function testApiIsSelfRegistrationAllowedReturnTrue() |
|
|
|
|
// todo function testApiGetPathReturnString() |
|
|
|
|
// todo function testApiGetUserIdReturnInteger() |
|
|
|
|
// todo function testApiGetUserCoursesReturnArray() |
|
|
|
|
// todo function testApiGetUserInfoReturnArray($user_id) |
|
|
|
|
// todo function testApiGetUserInfoFromUsernameReturnArray($username) |
|
|
|
|
// todo function testApiGetCourseIdReturnInteger() |
|
|
|
|
// todo function testApiGetCoursePath() |
|
|
|
|
// todo function testApiGetCourseSetting() |
|
|
|
|
// todo function testApiGetAnonymousIdReturnInt() |
|
|
|
|
// todo function testApiGetCidreq() |
|
|
|
|
// todo function testApiGetCourseInfoReturnString() |
|
|
|
|
// todo function testApiSqlQuery() |
|
|
|
|
// todo function testApiStoreResultReturnArray() |
|
|
|
|
// todo function testApiSessionStartReturnTrue() |
|
|
|
|
// todo function testApiSessionRegister() |
|
|
|
|
// todo function testApiSessionUnregister() |
|
|
|
|
// todo function testApiSessionClearReturnArray() |
|
|
|
|
// todo function testApiSessionDestroyReturnArray() |
|
|
|
|
// todo function testApiAdd_UrlParamReturnString() |
|
|
|
|
// todo function testApiGeneratePasswordReurnPassword() |
|
|
|
|
// todo function testApiCheckPasswordReturnTrue() |
|
|
|
|
// todo function testApiClearAnonymousReturnFalse() |
|
|
|
|
// todo function testApiTruncStr() |
|
|
|
|
// todo function testDomesticate |
|
|
|
|
// todo function testGetStatusFromCodeReturnString() |
|
|
|
|
// todo function testApiSetFailureReturnFalse() |
|
|
|
|
// todo function testApiSetAnonymousReturnTrue() |
|
|
|
|
// todo function testGetLastFailureRetunrString() |
|
|
|
|
// todo function testApiGetSessionIdReturnInt() |
|
|
|
|
// todo function testApiGetSessionNameReturnString() |
|
|
|
|
// todo function testApiGetSelfReturnRightValue() |
|
|
|
|
// todo function testGetLangReturnRightValue() |
|
|
|
|
// todo function testApiGetInterfaceLanguageReturnString() |
|
|
|
|
// todo function testApiIsPlatformAdminReturnTrue() |
|
|
|
|
// todo function testApiIsAllowedToCreateCourseReturnTrue() |
|
|
|
|
// todo function testApiIsCourseAdminRetunTrue() |
|
|
|
|
// todo function testApiIsCourseCoachReturnTrue() |
|
|
|
|
// todo function testApiIsCourseTutorReturnTrue() |
|
|
|
|
// todo function testApiIsCoachReturnTrue() |
|
|
|
|
// todo function testApiIsSessionAdminReturnTrue() |
|
|
|
|
// todo function testApiDisplayToolTitle($titleElement) |
|
|
|
|
// todo function testApiDisplayToolViewOption() |
|
|
|
|
// todo function testApiDisplayArray() |
|
|
|
|
// todo function testApiDisplayDebugInfo() |
|
|
|
|
// todo function testApiIsAllowedToEdit() |
|
|
|
|
// todo function testApiIsAllowed() |
|
|
|
|
// todo function testApiIsAnonymous() |
|
|
|
|
// todo function testApiNotAllowed() |
|
|
|
|
// todo function testConvertMysqlDate() |
|
|
|
|
// todo function testApiGetDatetime() |
|
|
|
|
// todo function testApiGetItemVisibility() |
|
|
|
|
// todo function testApiItemPropertyUpdate() |
|
|
|
|
// todo function testApiGetLanguagesCombo() |
|
|
|
|
// todo function testApiDisplayLanguageForm() |
|
|
|
|
// todo function testApiGetLanguages() |
|
|
|
|
// todo function testApiGetLanguageIsocode() |
|
|
|
|
// todo function testApiGetThemesReturnArray() |
|
|
|
|
// todo function testApiDispHtmlArea() |
|
|
|
|
// todo function testApiReturnHtmlArea() |
|
|
|
|
// todo function testApiSendMail() |
|
|
|
|
// todo function testApiMaxSortValue() |
|
|
|
|
// todo function testString2Boolean() |
|
|
|
|
// todo function testApiNumberOfPlugins() |
|
|
|
|
// todo function testApiPlugin() |
|
|
|
|
// todo function testApiIsPluginInstalled() |
|
|
|
|
// todo function testApiParseTex() |
|
|
|
|
// todo function testApiTimeToHms() |
|
|
|
|
// todo function testCopyr() |
|
|
|
|
// todo function testApiChmodR() |
|
|
|
|
// todo function testApiGetVersionReturnString() |
|
|
|
|
// todo function testApiStatusExistsReturnTrue() |
|
|
|
|
// todo function testApiStatusKeyReturnTrue() |
|
|
|
|
// todo function testApiStatusLangvarsReturnArray() |
|
|
|
|
// todo function testApiSetSetting() |
|
|
|
|
// todo function testApiSetSettingsCategoryReturnTrue() |
|
|
|
|
// todo function testApiGetAccessUrlsReturnArray() |
|
|
|
|
// todo function testApiGetAccessUrlReturnArray() |
|
|
|
|
// todo function testApiAddAccessUrlReturnInt() |
|
|
|
|
// todo function testApiGetSettingsReturnArray() |
|
|
|
|
// todo function testApiGetSettingsCategoriesReturnArray() |
|
|
|
|
// todo function testApiDeleteSettingReturnTrue() |
|
|
|
|
// todo function testApiDeleteCategorySettingsReturnTrue() |
|
|
|
|
// todo function testApiAddSettingReturnTrue() |
|
|
|
|
// todo function testApiIsCourseVisibleForUserReturnBooleanValue() |
|
|
|
|
// todo function testApiIsElementInTheSessionReturnBooleanValue() |
|
|
|
|
// todo function testReplaceDangerousChar() |
|
|
|
|
// todo function testApiRequestUri() |
|
|
|
|
// todo function testApiCreateIncludePathSetting() |
|
|
|
|
// todo function testApiGetCurrentAccessUrlIdReturnInt() |
|
|
|
|
// todo function testApiAccessUrlFromUserReturnInt() |
|
|
|
|
// todo function testApiGetStatusOfUserInCourseReturnInteger() |
|
|
|
|
// todo function testApiIsInCourseReturnBooleanValue() |
|
|
|
|
// todo function testApiIsInGroupReturnBooleanValue() |
|
|
|
|
// todo function testApiIsXmlHttpRequest() |
|
|
|
|
// todo function testApiGetEncryptedPassword() |
|
|
|
|
// todo function testApiIsValidSecretKeyReturnBooleanValue() |
|
|
|
|
// todo function testApiIsUserOfCourseReturnBooleanValue() |
|
|
|
|
// todo function testApiIsWnidowsOsReturnBooleanValue() |
|
|
|
|
// todo function testApiUrlToLocalPathReturnString() |
|
|
|
|
// todo function testApiResizeImage() |
|
|
|
|
// todo function testApiCalculateImageSizeReturnArray() |
|
|
|
|
|
|
|
|
|
// function testApiGetSettingReturnsRightValue() { |
|
|
|
|
//$this->assertPattern('/\d/',$res); |
|
|
|
|