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

testDeployNoCode() public method

Tests the env:deploy command where no code is deployable
public testDeployNoCode ( )
    public function testDeployNoCode()
    {
        $this->environment->id = 'test';
        $this->environment->expects($this->once())->method('isInitialized')->willReturn(true);
        $this->environment->expects($this->once())->method('hasDeployableCode')->willReturn(false);
        $this->environment->expects($this->never())->method('deploy');
        $this->logger->expects($this->once())->method('log');
        // Run the deploy.
        $this->command->deploy('mysite.test');
    }