Code Duplication    Length = 9-10 lines in 2 locations

tests/WoWTest.php 2 locations

@@ 63-72 (lines=10) @@
60
    }
61
62
    /** @test */
63
    public function api_can_fetch_a_boss()
64
    {
65
        $bosses = $this->wow->getBossMasterList();
66
        $bossId = collect($bosses->get('bosses'))->first()->id;
67
        $response = $this->wow->getBoss($bossId);
68
69
        $this->assertInstanceOf(Collection::class, $response);
70
        $this->assertArrayHasKey('name', $response->toArray());
71
        $this->assertArrayHasKey('urlSlug', $response->toArray());
72
    }
73
74
    /** @test */
75
    public function api_can_fetch_realm_leader_board()
@@ 284-292 (lines=9) @@
281
    }
282
283
    /** @test */
284
    public function api_can_fetch_zone_details()
285
    {
286
        $zoneId = $this->wow->getZonesMasterList()->get('zones')[0]->id;
287
        $response = $this->wow->getZone($zoneId);
288
289
        $this->assertInstanceOf(Collection::class, $response);
290
        $this->assertArrayHasKey('id', $response->toArray());
291
        $this->assertEquals($zoneId, $response->get('id'));
292
    }
293
294
    /** @test */
295
    public function api_can_fetch_battlegroup_data()