Code Duplication    Length = 11-11 lines in 3 locations

tests/WoWTest.php 3 locations

@@ 107-117 (lines=11) @@
104
    }
105
106
    /** @test */
107
    public function api_can_fetch_a_guild()
108
    {
109
        $response = $this->wow->getGuild($this->realm, $this->guild);
110
111
        $this->assertInstanceOf(Collection::class, $response);
112
        $this->assertArrayHasKey('name', $response->toArray());
113
        $this->assertArrayHasKey('level', $response->toArray());
114
        $this->assertArrayHasKey('side', $response->toArray());
115
        $this->assertArrayHasKey('emblem', $response->toArray());
116
        $this->assertEquals($this->guild, $response->get('name'));
117
    }
118
119
    /** @test */
120
    public function api_can_fetch_guild_members()
@@ 120-130 (lines=11) @@
117
    }
118
119
    /** @test */
120
    public function api_can_fetch_guild_members()
121
    {
122
        $response = $this->wow->getGuildMembers($this->realm, $this->guild);
123
124
        $this->assertInstanceOf(Collection::class, $response);
125
        $this->assertArrayHasKey('name', $response->toArray());
126
        $this->assertArrayHasKey('realm', $response->toArray());
127
        $this->assertArrayHasKey('members', $response->toArray());
128
        $this->assertObjectHasAttribute('character', $response->get('members')[0]);
129
        $this->assertEquals($this->guild, $response->get('name'));
130
    }
131
132
    /** @test */
133
    public function api_can_fetch_an_item()
@@ 191-201 (lines=11) @@
188
    }
189
190
    /** @test */
191
    public function api_can_fetch_pet_stats()
192
    {
193
        $response = $this->wow->getPetStats($this->speciesId);
194
195
        $this->assertInstanceOf(Collection::class, $response);
196
        $this->assertArrayHasKey('speciesId', $response->toArray());
197
        $this->assertArrayHasKey('level', $response->toArray());
198
        $this->assertArrayHasKey('breedId', $response->toArray());
199
        $this->assertArrayHasKey('petQualityId', $response->toArray());
200
        $this->assertEquals($this->speciesId, $response->get('speciesId'));
201
    }
202
203
    /** @test */
204
    public function api_can_fetch_pet_stats_on_specific_level()