コード例 #1
0
 /**
  * @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
ファイル: JobTest.php プロジェクト: jobles/core-php
 public function testGetCountry()
 {
     $this->assertEquals('Brasil', $this->job->getCountry());
 }