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

testDeploy() public method

Tests the env:deploy command success with all parameters
public testDeploy ( )
    public function testDeploy()
    {
        $this->environment->id = 'test';
        $this->environment->expects($this->once())->method('isInitialized')->willReturn(true);
        $this->environment->expects($this->once())->method('hasDeployableCode')->willReturn(true);
        $this->environment->expects($this->once())->method('deploy')->willReturn($this->workflow)->with(['updatedb' => 0, 'clear_cache' => 0, 'annotation' => 'Deploy from Terminus', 'clone_database' => ['from_environment' => 'live'], 'clone_files' => ['from_environment' => 'live']]);
        $this->workflow->expects($this->once())->method('checkProgress')->with()->willReturn(true);
        // Run the deploy.
        $this->command->deploy('mysite.test', ['sync-content' => true, 'note' => 'Deploy from Terminus', 'cc' => false, 'updatedb' => false]);
    }