Pantheon\Terminus\UnitTests\Commands\Env\CommitCommandTest::testCommit PHP Method

testCommit() public method

Tests the env:commit command success with all parameters.
public testCommit ( ) : void
return void
    public function testCommit()
    {
        $this->environment->expects($this->once())->method('diffstat')->willReturn(['a', 'b']);
        $this->environment->expects($this->once())->method('commitChanges')->willReturn($this->workflow)->with('Custom message.');
        $this->workflow->expects($this->once())->method('wait');
        $this->command->commit('mysite.dev', ['message' => 'Custom message.']);
    }
CommitCommandTest