/**
  * @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());
 }
示例#2
0
 public function testGetState()
 {
     $this->assertEquals('SP', $this->job->getState());
 }