Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from helloiamlukas/analysis-XlDN0J
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
helloiamlukas authored May 27, 2018
2 parents 9597230 + 201815f commit 6db37bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/ChromeHeadlessServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ protected function getPackageProviders($app)
/** @test */
public function it_can_set_a_custom_user_agent()
{
$user_agent = "NiceUserAgent/1.0";
$this->app->config->set("chrome.user_agent", $user_agent);
$command = ChromeHeadless::url("https://example.com")->setUserAgent($user_agent)->createCommand();
$user_agent = 'NiceUserAgent/1.0';
$this->app->config->set('chrome.user_agent', $user_agent);
$command = ChromeHeadless::url('https://example.com')->setUserAgent($user_agent)->createCommand();
$this->assertContains(json_encode($user_agent), $command);
}

/** @test */
public function it_can_set_a_custom_chrome_path()
{
$chrome_path = "google-chrome-stable";
$this->app->config->set("chrome.exec_path", $chrome_path);
$command = ChromeHeadless::url("https://example.com")->setChromePath($chrome_path)->createCommand();
$chrome_path = 'google-chrome-stable';
$this->app->config->set('chrome.exec_path', $chrome_path);
$command = ChromeHeadless::url('https://example.com')->setChromePath($chrome_path)->createCommand();
$this->assertContains(json_encode($chrome_path), $command);
}
}

0 comments on commit 6db37bc

Please sign in to comment.