AppserverIo\Appserver\Core\Api\AppServiceTest::testUndeploy PHP Method

testUndeploy() public method

If we can run the un-deploy functionality without receiving an error
public testUndeploy ( ) : null
return null
    public function testUndeploy()
    {
        $mockHost = $this->getMockBuilder('\\AppserverIo\\Appserver\\Core\\Api\\Node\\HostNodeInterface')->setMethods(get_class_methods('\\AppserverIo\\Appserver\\Core\\Api\\Node\\HostNodeInterface'))->getMock();
        $mockHost->expects($this->once())->method('getDeployBase')->willReturn('webapps');
        $mockContainer = $this->getMockBuilder('\\AppserverIo\\Appserver\\Core\\Api\\Node\\ContainerNodeInterface')->setMethods(get_class_methods('\\AppserverIo\\Appserver\\Core\\Api\\Node\\ContainerNodeInterface'))->getMock();
        $mockContainer->expects($this->once())->method('getHost')->willReturn($mockHost);
        $mockExtractor = $this->getMock('\\AppserverIo\\Appserver\\Core\\Interfaces\\ExtractorInterface');
        $mockExtractor->expects($this->once())->method('unflagArchive');
        $this->appService->injectExtractor($mockExtractor);
        $appNode = new AppNode(__METHOD__, '/opt/appserver/targetwebapp');
        $this->appService->persist($appNode);
        $this->appService->undeploy($mockContainer, $appNode->getUuid());
    }