PHP Class Kraken\_Unit\Runtime\Container\Manager\ProcessManagerBaseTest

Inheritance: extends Kraken\Test\TUnit
Datei anzeigen Open project: kraken-php/framework

Public Methods

Method Description
createProcessManager ( string[] | null $methods = [] ) : ProcessManagerBase | PHPUnit_Framework_MockObject_MockObject
getCommand ( ) : RuntimeCommand
testApiConstructor_CreatesInstance ( )
testApiCreateProcess_RejectsPromise_WhenProcessDoesExistAndForceIsDefault ( )
testApiCreateProcess_RejectsPromise_WhenProcessDoesNotExistAndNameIsNull ( )
testApiCreateProcesses_RejectsPromise_WhenAtLeastOneProcessCouldNotBeCreated ( )
testApiCreateProcesses_ResolvesPromise_WhenAllProcessesAreCreated ( )
testApiDestroyProcess_RejectsPromise_WhenProcessDoesExistAndForceFlagIsDestroyKeep ( )
testApiDestroyProcess_ResolvesPromise_WhenProcessDoesNotExist ( )
testApiDestroyProcesses_RejectsPromise_WhenAtLeastOneProcessCouldNotBeDestroyed ( )
testApiDestroyProcesses_ResolvesPromise_WhenAllProcessesAreDestroyed ( )
testApiDestructor_DoesNotThrowException ( )
testApiExistsProcess_ReturnsFalse_WhenProcessDoesNotExist ( )
testApiExistsProcess_ReturnsTrue_WhenProcessDoesExist ( )
testApiFlushProcesses_FlushesProcesses_WhenFlagIsOtherThanDestroyKeep ( )
testApiFlushProcesses_RejectsPromise_WhenFlagIsDestroyKeep ( )
testApiGetProcesses_ReturnsFulfilledPromiseThatContainsListOfProcesses ( )
testApiStartProcess_InvokesValidCommand ( )
testApiStartProcesses_RejectsPromise_WhenAtLeastOneProcessCouldNotBeStarted ( )
testApiStartProcesses_ResolvesPromise_WhenAllProcessesAreStarted ( )
testApiStopProcess_InvokesValidCommand ( )
testApiStopProcesses_RejectsPromise_WhenAtLeastOneProcessCouldNotBeStopped ( )
testApiStopProcesses_ResolvesPromise_WhenAllProcessesAreStopped ( )
testProtectedApiAllocateProcess_AllocatesProcessAndReturnsTrue ( )
testProtectedApiCreateRequest_CreatesRequest ( )
testProtectedApiFreeProcess_FreesProcessAndReturnsTrue ( )

Method Details

createProcessManager() public method

public createProcessManager ( string[] | null $methods = [] ) : ProcessManagerBase | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Kraken\Runtime\Container\Manager\ProcessManagerBase | PHPUnit_Framework_MockObject_MockObject

getCommand() public method

public getCommand ( ) : RuntimeCommand
return Kraken\Runtime\RuntimeCommand

testApiConstructor_CreatesInstance() public method

testApiCreateProcess_RejectsPromise_WhenProcessDoesExistAndForceIsDefault() public method

testApiCreateProcess_RejectsPromise_WhenProcessDoesNotExistAndNameIsNull() public method

testApiCreateProcesses_RejectsPromise_WhenAtLeastOneProcessCouldNotBeCreated() public method

testApiCreateProcesses_ResolvesPromise_WhenAllProcessesAreCreated() public method

testApiDestroyProcess_RejectsPromise_WhenProcessDoesExistAndForceFlagIsDestroyKeep() public method

testApiDestroyProcess_ResolvesPromise_WhenProcessDoesNotExist() public method

testApiDestroyProcesses_RejectsPromise_WhenAtLeastOneProcessCouldNotBeDestroyed() public method

testApiDestroyProcesses_ResolvesPromise_WhenAllProcessesAreDestroyed() public method

testApiDestructor_DoesNotThrowException() public method

testApiExistsProcess_ReturnsFalse_WhenProcessDoesNotExist() public method

testApiExistsProcess_ReturnsTrue_WhenProcessDoesExist() public method

testApiFlushProcesses_FlushesProcesses_WhenFlagIsOtherThanDestroyKeep() public method

testApiFlushProcesses_RejectsPromise_WhenFlagIsDestroyKeep() public method

testApiGetProcesses_ReturnsFulfilledPromiseThatContainsListOfProcesses() public method

testApiStartProcess_InvokesValidCommand() public method

testApiStartProcesses_RejectsPromise_WhenAtLeastOneProcessCouldNotBeStarted() public method

testApiStartProcesses_ResolvesPromise_WhenAllProcessesAreStarted() public method

testApiStopProcess_InvokesValidCommand() public method

testApiStopProcesses_RejectsPromise_WhenAtLeastOneProcessCouldNotBeStopped() public method

testApiStopProcesses_ResolvesPromise_WhenAllProcessesAreStopped() public method

testProtectedApiAllocateProcess_AllocatesProcessAndReturnsTrue() public method

testProtectedApiCreateRequest_CreatesRequest() public method

testProtectedApiFreeProcess_FreesProcessAndReturnsTrue() public method