Code Duplication    Length = 16-16 lines in 2 locations

tests/Builder/JobWithBrazilianLocationsBuilderTest.php 2 locations

@@ 65-80 (lines=16) @@
62
        $this->assertEquals('Brazil', $this->job->getCountry());
63
    }
64
65
    public function testLocationIsAmapa()
66
    {
67
        $this->apiJob->locations = 'Amapá';
68
        $this->job = JobWithBrazilianLocationsBuilder::fromApi($this->apiJob, $this->job);
69
70
        $this->assertEquals('AP', $this->job->getState());
71
        $this->assertNull($this->job->getCity());
72
        $this->assertEquals('Brazil', $this->job->getCountry());
73
74
        $this->apiJob->locations = 'Amapa';
75
        $this->job = JobWithBrazilianLocationsBuilder::fromApi($this->apiJob, $this->job);
76
77
        $this->assertEquals('AP', $this->job->getState());
78
        $this->assertNull($this->job->getCity());
79
        $this->assertEquals('Brazil', $this->job->getCountry());
80
    }
81
82
    public function testLocationIsAmazonas()
83
    {
@@ 102-117 (lines=16) @@
99
        $this->assertEquals('Brazil', $this->job->getCountry());
100
    }
101
102
    public function testLocationIsCeara()
103
    {
104
        $this->apiJob->locations = 'Ceará';
105
        $this->job = JobWithBrazilianLocationsBuilder::fromApi($this->apiJob, $this->job);
106
107
        $this->assertEquals('CE', $this->job->getState());
108
        $this->assertNull($this->job->getCity());
109
        $this->assertEquals('Brazil', $this->job->getCountry());
110
111
        $this->apiJob->locations = 'Ceara';
112
        $this->job = JobWithBrazilianLocationsBuilder::fromApi($this->apiJob, $this->job);
113
114
        $this->assertEquals('CE', $this->job->getState());
115
        $this->assertNull($this->job->getCity());
116
        $this->assertEquals('Brazil', $this->job->getCountry());
117
    }
118
}
119