TESTS
Interfaces, Classes, Traits and Enums
- toolTests
- Tests page
Table of Contents
- testRemoteCommand() : bool
- Runs a test case of lamdaemon.
- lamRunTestSuite() : void
- Runs all tests for a given server.
- checkSchemaForModule() : string
- Checks if the object classes and attributes for this module are available.
- getRecursiveAttributesFromObjectClass() : array<string|int, mixed>
- Returns the names of all attributes which are managed by the given object class and its parents.
Functions
testRemoteCommand()
Runs a test case of lamdaemon.
testRemoteCommand(string $command, bool $stopTest, Remote $remote, string $testText, htmlResponsiveRow $container) : bool
Parameters
- $command : string
-
test command
- $stopTest : bool
-
specifies if test should be run
- $remote : Remote
-
SSH connection
- $testText : string
-
describing text
- $container : htmlResponsiveRow
-
container for HTML output
Return values
bool —true, if errors occurred
lamRunTestSuite()
Runs all tests for a given server.
lamRunTestSuite(string $serverName, string $serverTitle, bool $testQuota, htmlResponsiveRow $container) : void
Parameters
- $serverName : string
-
server ID
- $serverTitle : string
-
server name
- $testQuota : bool
-
true, if Quotas should be checked
- $container : htmlResponsiveRow
-
container for HTML output
Return values
void —checkSchemaForModule()
Checks if the object classes and attributes for this module are available.
checkSchemaForModule(string $name, string $scope, string $typeId) : string
Parameters
- $name : string
-
module name
- $scope : string
-
type (user, group, ...)
- $typeId : string
-
type id
Return values
string —error message or null
getRecursiveAttributesFromObjectClass()
Returns the names of all attributes which are managed by the given object class and its parents.
getRecursiveAttributesFromObjectClass(ObjectClass $oClass) : array<string|int, mixed>
Parameters
- $oClass : ObjectClass
-
object class
Return values
array<string|int, mixed> —list of attribute names