PHP Класс AppserverIo\Appserver\Core\Api\AppServiceTest

Автор: Bernhard Wick ([email protected])
Автор: Tim Wagner ([email protected])
Наследование: extends AppserverIo\Appserver\Core\Api\AbstractServicesTest
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$appService PHPUnit_Framework_MockObject_MockObject | AppService The app service instance to test.

Открытые методы

Метод Описание
setUp ( ) : null Initializes the service instance to test.
testCleanUpFolders ( ) : null Tests if we are able to clear the tmp directory of an application
testCreateTmpFolders ( ) : null Tests if we can create the tmp directories a passed application needs
testDeploy ( ) : null Tests if we will run through the deploy process without an error
testFindAll ( ) : null Test if the findAll() method returns the correct number of elements.
testFindAllByName ( ) : null Test if the findAllByName() method returns the correct number of elements.
testGetExtractor ( ) : null Tests if are able to always get an extractor, either default or injected one
testGetExtractorWithoutDefaultConfiguration ( ) : null Tests if are able to run through the method
testInjectExtractor ( ) : null Tests if we are able to inject our extractor
testLoad ( ) : null Test if the load() method returns the correct app node.
testLoadByWebappPath ( ) : null Tests if we can load a webapp by path
testLoadWithInvalidPrimaryKey ( ) : null Test if the load() method returns the NULL for an invalid primary key.
testNewFromApplication ( ) : null Will test if we can successfully add an app to the configuration based on a given application object
testPersist ( ) : null Tests if we can persist apps into our configuration
testSoak ( ) : null Tests if we can soak an archive without receiving an exception
testUndeploy ( ) : null If we can run the un-deploy functionality without receiving an error
testUndeployInvalidUuid ( ) : null If we can determine if a passed UUID is an invalid one

Описание методов

setUp() публичный метод

Initializes the service instance to test.
public setUp ( ) : null
Результат null

testCleanUpFolders() публичный метод

Tests if we are able to clear the tmp directory of an application
public testCleanUpFolders ( ) : null
Результат null

testCreateTmpFolders() публичный метод

Tests if we can create the tmp directories a passed application needs
public testCreateTmpFolders ( ) : null
Результат null

testDeploy() публичный метод

Tests if we will run through the deploy process without an error
public testDeploy ( ) : null
Результат null

testFindAll() публичный метод

Test if the findAll() method returns the correct number of elements.
public testFindAll ( ) : null
Результат null

testFindAllByName() публичный метод

Test if the findAllByName() method returns the correct number of elements.
public testFindAllByName ( ) : null
Результат null

testGetExtractor() публичный метод

Tests if are able to always get an extractor, either default or injected one
public testGetExtractor ( ) : null
Результат null

testGetExtractorWithoutDefaultConfiguration() публичный метод

Tests if are able to run through the method
public testGetExtractorWithoutDefaultConfiguration ( ) : null
Результат null

testInjectExtractor() публичный метод

Tests if we are able to inject our extractor
public testInjectExtractor ( ) : null
Результат null

testLoad() публичный метод

Test if the load() method returns the correct app node.
public testLoad ( ) : null
Результат null

testLoadByWebappPath() публичный метод

Tests if we can load a webapp by path
public testLoadByWebappPath ( ) : null
Результат null

testLoadWithInvalidPrimaryKey() публичный метод

Test if the load() method returns the NULL for an invalid primary key.
public testLoadWithInvalidPrimaryKey ( ) : null
Результат null

testNewFromApplication() публичный метод

Will test if we can successfully add an app to the configuration based on a given application object
public testNewFromApplication ( ) : null
Результат null

testPersist() публичный метод

Tests if we can persist apps into our configuration
public testPersist ( ) : null
Результат null

testSoak() публичный метод

Tests if we can soak an archive without receiving an exception
public testSoak ( ) : null
Результат null

testUndeploy() публичный метод

If we can run the un-deploy functionality without receiving an error
public testUndeploy ( ) : null
Результат null

testUndeployInvalidUuid() публичный метод

If we can determine if a passed UUID is an invalid one
public testUndeployInvalidUuid ( ) : null
Результат null

Описание свойств

$appService защищенное свойство

The app service instance to test.
protected PHPUnit_Framework_MockObject_MockObject|AppService,AppserverIo\Appserver\Core\Api $appService
Результат PHPUnit_Framework_MockObject_MockObject | AppService