AppserverIo\Appserver\Core\Api\AbstractServiceTest::testGetDeployDirNothingToAppend PHP Method

testGetDeployDirNothingToAppend() public method

Tests if getting just the tmp directory works
    public function testGetDeployDirNothingToAppend()
    {
        $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('deploy');
        $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);
        $deployDir = $this->service->getDeployDir($mockContainer);
        $this->assertEquals('/opt/appserver/deploy', $deployDir);
        $this->assertNotEquals('/opt/appserver/deploy/test/directory', $deployDir);
    }