/**
  * @dataProvider statesDataProvider
  * @param $stateName
  * @param $shortState
  * @throws \Jobles\Careerjet\Exception\CareerjetException
  */
 public function testLocationsAsStateNameSetsShortStateOnJob($stateName, $shortState)
 {
     $this->apiJob->locations = $stateName;
     $this->job = JobWithBrazilianLocationsBuilder::fromApi($this->apiJob, $this->job);
     $this->assertEquals($shortState, $this->job->getState());
     $this->assertEmpty($this->job->getCity());
     $this->assertEquals('Brazil', $this->job->getCountry());
 }
Exemplo n.º 2
0
 public function testGetCountry()
 {
     $this->assertEquals('Brasil', $this->job->getCountry());
 }