Skip to content

Commit

Permalink
Merge pull request #23 from GhazanfarMir/analysis-zYnYbo
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
GhazanfarMir authored Aug 6, 2019
2 parents a6e86a9 + 5c73a8b commit 2a37de1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tests/Features/CompanyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public function get_company_profile_by_company_number()

$companies = $this->api->company($this->number)->get();

$this->assertArrayHasKey('company_name', (array)$companies);
$this->assertArrayHasKey('company_name', (array) $companies);

$this->assertArrayHasKey('company_status', (array)$companies);
$this->assertArrayHasKey('company_status', (array) $companies);
}

/**
Expand All @@ -40,7 +40,7 @@ public function get_company_registered_address()
return;
}

$address = (array)$this->api->company($this->number)->registered_office_address();
$address = (array) $this->api->company($this->number)->registered_office_address();

$this->assertArrayHasKey('postal_code', $address);
$this->assertArrayHasKey('country', $address);
Expand All @@ -62,9 +62,9 @@ public function get_company_officers()

$officers = $this->api->company($this->number)->officers();

$this->assertArrayHasKey('total_results', (array)$officers);
$this->assertArrayHasKey('name', (array)$officers->items[0]);
$this->assertArrayHasKey('address', (array)$officers->items[0]);
$this->assertArrayHasKey('total_results', (array) $officers);
$this->assertArrayHasKey('name', (array) $officers->items[0]);
$this->assertArrayHasKey('address', (array) $officers->items[0]);
}

/**
Expand All @@ -80,7 +80,7 @@ public function get_uk_establishment_companies()

$establishments = $this->api->company($this->number)->uk_establishments();

$this->assertArrayHasKey('items', (array)$establishments);
$this->assertArrayHasKey('items', (array) $establishments);
}

/**
Expand All @@ -93,7 +93,6 @@ public function get_company_registers()
if ($this->platform == 'travis') {
throw new \GhazanfarMir\CompaniesHouse\Exceptions\InvalidResourceException;


return;
}

Expand All @@ -105,7 +104,6 @@ public function get_company_registers()
*/
public function get_company_exemptions()
{

$this->expectException(InvalidResourceException::class);

if ($this->platform == 'travis') {
Expand Down

0 comments on commit 2a37de1

Please sign in to comment.