PHP Class AppserverIo\Appserver\Core\Api\AbstractServiceTest

Author: Bernhard Wick ([email protected])
Author: Tim Wagner ([email protected])
Inheritance: extends AppserverIo\Appserver\Core\Api\AbstractServicesTest
Afficher le fichier Open project: appserver-io/appserver

Protected Properties

Свойство Type Description
$service PHPUnit_Framework_MockObject_MockObject | AbstractService The abstract service instance to test.

Méthodes publiques

Méthode Description
setUp ( ) : null Initializes the service instance to test.
testGetBaseDirectoryDirectoryAppended ( ) : null Tests the returning of a base directory appended by a given string
testGetBaseDirectoryNothingToAppend ( ) : null Tests the returning of a base directory without appending anything
testGetConfDirDirectoryAppended ( ) : null Tests if returning the configuration dir + appendage works
testGetConfDirNothingToAppend ( ) : null Tests if getting just the configuration directory works
testGetConfdDirDirectoryAppended ( ) : null Tests if returning the configuration sub-dir + appendage works
testGetConfdDirNothingToAppend ( ) : null Tests if getting just the configuration sub-directory works
testGetDeployDirDirectoryAppended ( ) : null Tests if returning the deploy dir + appendage works
testGetDeployDirNothingToAppend ( ) : null Tests if getting just the tmp directory works
testGetDirectories ( ) : null Test if directories get taken from our system configuration
testGetInitialContext ( ) : null Test if the initial context has successfully been initialized.
testGetLogDirDirectoryAppended ( ) : null Tests if returning the log dir + appendage works
testGetLogDirNothingToAppend ( ) : null Tests if getting just the log directory works
testGetOsIdentifier ( ) : null Check if we get a correctly trimmed identifier within a possible range
testGetSetSystemConfiguration ( ) : null Test if the getter/setter for the system configuration.
testGetSystemConfiguration ( ) : null Test if the system configuration has successfully been initialized.
testGetTmpDirDirectoryAppended ( ) : null Tests if getting the tmp directory + an appendage works
testGetTmpDirNothingToAppend ( ) : null Tests if getting just the tmp directory works
testGetWebappsDirDirectoryAppended ( ) : null Tests if returning the webapps dir + appendage works
testGetWebappsDirNothingToAppend ( ) : null Tests if getting just the webapps directory works
testGlobDir ( ) : null Rests if we can glob directories and files as we should
testNewInstance ( ) : null Test the new instance method.
testNewService ( ) : null Test the new service method.
testPersist ( ) : null Dummy test as there currently is now functionality behind the actual method
testRealpath ( ) : null Test if building the absolute path works like it should

Méthodes protégées

Méthode Description
getPartialServiceMock ( array $methodsToMock ) : PHPUnit_Framework_MockObject_MockObject | AbstractService Returns a partially mocked mock instance of our abstract service
skipOnWindows ( ) : null Use to skip your test on windows machines

Method Details

getPartialServiceMock() protected méthode

Returns a partially mocked mock instance of our abstract service
protected getPartialServiceMock ( array $methodsToMock ) : PHPUnit_Framework_MockObject_MockObject | AbstractService
$methodsToMock array The methods we want to mock besides 'findAll' and 'load'
Résultat PHPUnit_Framework_MockObject_MockObject | AbstractService

setUp() public méthode

Initializes the service instance to test.
public setUp ( ) : null
Résultat null

skipOnWindows() protected méthode

Use to skip your test on windows machines
protected skipOnWindows ( ) : null
Résultat null

testGetBaseDirectoryDirectoryAppended() public méthode

Tests the returning of a base directory appended by a given string

testGetBaseDirectoryNothingToAppend() public méthode

Tests the returning of a base directory without appending anything

testGetConfDirDirectoryAppended() public méthode

Tests if returning the configuration dir + appendage works
public testGetConfDirDirectoryAppended ( ) : null
Résultat null

testGetConfDirNothingToAppend() public méthode

Tests if getting just the configuration directory works
public testGetConfDirNothingToAppend ( ) : null
Résultat null

testGetConfdDirDirectoryAppended() public méthode

Tests if returning the configuration sub-dir + appendage works
public testGetConfdDirDirectoryAppended ( ) : null
Résultat null

testGetConfdDirNothingToAppend() public méthode

Tests if getting just the configuration sub-directory works
public testGetConfdDirNothingToAppend ( ) : null
Résultat null

testGetDeployDirDirectoryAppended() public méthode

Tests if returning the deploy dir + appendage works

testGetDeployDirNothingToAppend() public méthode

Tests if getting just the tmp directory works
public testGetDeployDirNothingToAppend ( ) : null
Résultat null

testGetDirectories() public méthode

Test if directories get taken from our system configuration
public testGetDirectories ( ) : null
Résultat null

testGetInitialContext() public méthode

Test if the initial context has successfully been initialized.
public testGetInitialContext ( ) : null
Résultat null

testGetLogDirDirectoryAppended() public méthode

Tests if returning the log dir + appendage works
public testGetLogDirDirectoryAppended ( ) : null
Résultat null

testGetLogDirNothingToAppend() public méthode

Tests if getting just the log directory works
public testGetLogDirNothingToAppend ( ) : null
Résultat null

testGetOsIdentifier() public méthode

Check if we get a correctly trimmed identifier within a possible range
See also: https://en.wikipedia.org/wiki/Uname#Table_of_standard_uname_output
public testGetOsIdentifier ( ) : null
Résultat null

testGetSetSystemConfiguration() public méthode

Test if the getter/setter for the system configuration.
public testGetSetSystemConfiguration ( ) : null
Résultat null

testGetSystemConfiguration() public méthode

Test if the system configuration has successfully been initialized.
public testGetSystemConfiguration ( ) : null
Résultat null

testGetTmpDirDirectoryAppended() public méthode

Tests if getting the tmp directory + an appendage works
public testGetTmpDirDirectoryAppended ( ) : null
Résultat null

testGetTmpDirNothingToAppend() public méthode

Tests if getting just the tmp directory works
public testGetTmpDirNothingToAppend ( ) : null
Résultat null

testGetWebappsDirDirectoryAppended() public méthode

Tests if returning the webapps dir + appendage works

testGetWebappsDirNothingToAppend() public méthode

Tests if getting just the webapps directory works
public testGetWebappsDirNothingToAppend ( ) : null
Résultat null

testGlobDir() public méthode

Rests if we can glob directories and files as we should
public testGlobDir ( ) : null
Résultat null

testNewInstance() public méthode

Test the new instance method.
public testNewInstance ( ) : null
Résultat null

testNewService() public méthode

Test the new service method.
public testNewService ( ) : null
Résultat null

testPersist() public méthode

Dummy test as there currently is now functionality behind the actual method
public testPersist ( ) : null
Résultat null

testRealpath() public méthode

Test if building the absolute path works like it should
public testRealpath ( ) : null
Résultat null

Property Details

$service protected_oe property

The abstract service instance to test.
protected PHPUnit_Framework_MockObject_MockObject|AbstractService,AppserverIo\Appserver\Core\Api $service
Résultat PHPUnit_Framework_MockObject_MockObject | AbstractService