Skip to content

Commit

Permalink
Merge branch '1.0'
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>

# Conflicts:
#	src/Concerns/DetectsChromeVersion.php
  • Loading branch information
crynobone committed May 17, 2019
2 parents 5becdd0 + e025df9 commit 566f4c2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/UpdateCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,22 @@ public function it_can_update_to_major_version()
$output = $commandTester->getDisplay();
$this->assertStringContainsString("ChromeDriver binary successfully installed for version 74", $output);
}

/** @test */
public function it_cant_update_to_invalid_version()
{
$this->expectException('RuntimeException');
$this->expectExceptionMessage('Unable to retrieve ChromeDriver [74.0.3729].');

$app = new Application('Dusk Updater', '1.0.0');
$app->add(new UpdateCommand());

$command = $app->find('update');

$commandTester = new CommandTester($command);
$commandTester->execute([
'command' => $command->getName(),
'version' => '74.0.3729',
]);
}
}

0 comments on commit 566f4c2

Please sign in to comment.