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.']);
}