Pantheon\Terminus\UnitTests\Commands\Env\DeployCommandTest::testDeployUninitialized PHP Method

testDeployUninitialized() public method

Tests the env:deploy command when the environment is uninitialized
    public function testDeployUninitialized()
    {
        $this->environment->id = 'uninitialized';
        $this->environment->expects($this->once())->method('isInitialized')->willReturn(false);
        $this->environment->expects($this->once())->method('initializeBindings')->willReturn($this->workflow)->with();
        $this->workflow->expects($this->once())->method('checkProgress')->with()->willReturn(true);
        // Run the deploy.
        $this->command->deploy('mysite.uninitialized');
    }