Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Jul 22, 2023
1 parent bce2771 commit 4871366
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/OperatingSystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ public function test_it_has_correct_os()
], OperatingSystem::all());
}

public function test_it_can_resolve_chrome_version_commands()
{
foreach (OperatingSystem::all() as $os) {
$commands = OperatingSystem::chromeVersionCommands($os);

$this->assertTrue(is_array($commands), 'Commands should be an array');
$this->assertFalse(empty($commands), 'Commands should not be empty');
}
}
public function test_it_cant_resolve_invalid_chrome_version_commands()
{
$this->expectException('InvalidArgumentException');
$this->expectExceptionMessage('Unable to find commands for Operating System [window_os]');

OperatingSystem::chromeVersionCommands('window_os');
}

/**
* @dataProvider resolveChromeDriverBinaryDataProvider
*/
Expand Down

0 comments on commit 4871366

Please sign in to comment.