|
@@ 160-168 (lines=9) @@
|
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
/** @test */ |
| 160 |
|
public function api_can_fetch_pet_master_list() |
| 161 |
|
{ |
| 162 |
|
$response = $this->wow->getPetList(); |
| 163 |
|
|
| 164 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 165 |
|
$this->assertArrayHasKey('pets', $response->toArray()); |
| 166 |
|
$this->assertObjectHasAttribute('name', $response->get('pets')[0]); |
| 167 |
|
$this->assertObjectHasAttribute('family', $response->get('pets')[0]); |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
/** @test */ |
| 171 |
|
public function api_can_fetch_pet_abilities() |
|
@@ 220-228 (lines=9) @@
|
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
/** @test */ |
| 220 |
|
public function api_can_fetch_pvp_leaderboards() |
| 221 |
|
{ |
| 222 |
|
$response = $this->wow->getLeaderboards($this->pvpBracket); |
| 223 |
|
|
| 224 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 225 |
|
$this->assertArrayHasKey('rows', $response->toArray()); |
| 226 |
|
$this->assertObjectHasAttribute('ranking', $response->get('rows')[0]); |
| 227 |
|
$this->assertObjectHasAttribute('rating', $response->get('rows')[0]); |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
/** @test */ |
| 231 |
|
public function api_can_fetch_quest_data() |
|
@@ 241-249 (lines=9) @@
|
| 238 |
|
} |
| 239 |
|
|
| 240 |
|
/** @test */ |
| 241 |
|
public function api_can_fetch_realm_status() |
| 242 |
|
{ |
| 243 |
|
$response = $this->wow->getRealmStatus(); |
| 244 |
|
|
| 245 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 246 |
|
$this->assertArrayHasKey('realms', $response->toArray()); |
| 247 |
|
$this->assertObjectHasAttribute('type', $response->get('realms')[0]); |
| 248 |
|
$this->assertObjectHasAttribute('population', $response->get('realms')[0]); |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
/** @test */ |
| 252 |
|
public function api_can_fetch_a_recipe() |
|
@@ 295-303 (lines=9) @@
|
| 292 |
|
} |
| 293 |
|
|
| 294 |
|
/** @test */ |
| 295 |
|
public function api_can_fetch_battlegroup_data() |
| 296 |
|
{ |
| 297 |
|
$response = $this->wow->getDataBattlegroups(); |
| 298 |
|
|
| 299 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 300 |
|
$this->assertArrayHasKey('battlegroups', $response->toArray()); |
| 301 |
|
$this->assertObjectHasAttribute('name', $response->get('battlegroups')[0]); |
| 302 |
|
$this->assertObjectHasAttribute('slug', $response->get('battlegroups')[0]); |
| 303 |
|
} |
| 304 |
|
|
| 305 |
|
/** @test */ |
| 306 |
|
public function api_can_fetch_character_races() |
|
@@ 306-314 (lines=9) @@
|
| 303 |
|
} |
| 304 |
|
|
| 305 |
|
/** @test */ |
| 306 |
|
public function api_can_fetch_character_races() |
| 307 |
|
{ |
| 308 |
|
$response = $this->wow->getDataCharacterRaces(); |
| 309 |
|
|
| 310 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 311 |
|
$this->assertArrayHasKey('races', $response->toArray()); |
| 312 |
|
$this->assertObjectHasAttribute('id', $response->get('races')[0]); |
| 313 |
|
$this->assertObjectHasAttribute('name', $response->get('races')[0]); |
| 314 |
|
} |
| 315 |
|
|
| 316 |
|
/** @test */ |
| 317 |
|
public function api_can_fetch_character_classes() |
|
@@ 317-325 (lines=9) @@
|
| 314 |
|
} |
| 315 |
|
|
| 316 |
|
/** @test */ |
| 317 |
|
public function api_can_fetch_character_classes() |
| 318 |
|
{ |
| 319 |
|
$response = $this->wow->getDataCharacterClasses(); |
| 320 |
|
|
| 321 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 322 |
|
$this->assertArrayHasKey('classes', $response->toArray()); |
| 323 |
|
$this->assertObjectHasAttribute('id', $response->get('classes')[0]); |
| 324 |
|
$this->assertObjectHasAttribute('name', $response->get('classes')[0]); |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
/** @test */ |
| 328 |
|
public function api_can_fetch_character_achievements_data() |
|
@@ 328-336 (lines=9) @@
|
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
/** @test */ |
| 328 |
|
public function api_can_fetch_character_achievements_data() |
| 329 |
|
{ |
| 330 |
|
$response = $this->wow->getDataCharacterAchievements(); |
| 331 |
|
|
| 332 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 333 |
|
$this->assertArrayHasKey('achievements', $response->toArray()); |
| 334 |
|
$this->assertObjectHasAttribute('id', $response->get('achievements')[0]); |
| 335 |
|
$this->assertObjectHasAttribute('achievements', $response->get('achievements')[0]); |
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
/** @test */ |
| 339 |
|
public function api_can_fetch_guild_rewards_data() |
|
@@ 339-347 (lines=9) @@
|
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
/** @test */ |
| 339 |
|
public function api_can_fetch_guild_rewards_data() |
| 340 |
|
{ |
| 341 |
|
$response = $this->wow->getDataGuildRewards(); |
| 342 |
|
|
| 343 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 344 |
|
$this->assertArrayHasKey('rewards', $response->toArray()); |
| 345 |
|
$this->assertObjectHasAttribute('minGuildLevel', $response->get('rewards')[0]); |
| 346 |
|
$this->assertObjectHasAttribute('achievement', $response->get('rewards')[0]); |
| 347 |
|
} |
| 348 |
|
|
| 349 |
|
/** @test */ |
| 350 |
|
public function api_can_fetch_guild_perks() |
|
@@ 350-358 (lines=9) @@
|
| 347 |
|
} |
| 348 |
|
|
| 349 |
|
/** @test */ |
| 350 |
|
public function api_can_fetch_guild_perks() |
| 351 |
|
{ |
| 352 |
|
$response = $this->wow->getDataGuildPerks(); |
| 353 |
|
|
| 354 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 355 |
|
$this->assertArrayHasKey('perks', $response->toArray()); |
| 356 |
|
$this->assertObjectHasAttribute('guildLevel', $response->get('perks')[0]); |
| 357 |
|
$this->assertObjectHasAttribute('spell', $response->get('perks')[0]); |
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
/** @test */ |
| 361 |
|
public function api_can_fetch_guild_achievements_data() |
|
@@ 361-369 (lines=9) @@
|
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
/** @test */ |
| 361 |
|
public function api_can_fetch_guild_achievements_data() |
| 362 |
|
{ |
| 363 |
|
$response = $this->wow->getDataGuildAchievements(); |
| 364 |
|
|
| 365 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 366 |
|
$this->assertArrayHasKey('achievements', $response->toArray()); |
| 367 |
|
$this->assertObjectHasAttribute('id', $response->get('achievements')[0]); |
| 368 |
|
$this->assertObjectHasAttribute('achievements', $response->get('achievements')[0]); |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
/** @test */ |
| 372 |
|
public function api_can_fetch_item_classes_data() |
|
@@ 372-380 (lines=9) @@
|
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
/** @test */ |
| 372 |
|
public function api_can_fetch_item_classes_data() |
| 373 |
|
{ |
| 374 |
|
$response = $this->wow->getDataItemClasses(); |
| 375 |
|
|
| 376 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 377 |
|
$this->assertArrayHasKey('classes', $response->toArray()); |
| 378 |
|
$this->assertObjectHasAttribute('name', $response->get('classes')[0]); |
| 379 |
|
$this->assertObjectHasAttribute('class', $response->get('classes')[0]); |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
/** @test */ |
| 383 |
|
public function api_can_fetch_talent_data() |
|
@@ 383-391 (lines=9) @@
|
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
/** @test */ |
| 383 |
|
public function api_can_fetch_talent_data() |
| 384 |
|
{ |
| 385 |
|
$response = $this->wow->getDataTalents(); |
| 386 |
|
|
| 387 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 388 |
|
$this->assertObjectHasAttribute('specs', $response->first()); |
| 389 |
|
$this->assertObjectHasAttribute('name', $response->first()->specs[0]); |
| 390 |
|
$this->assertObjectHasAttribute('role', $response->first()->specs[0]); |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
/** @test */ |
| 394 |
|
public function api_can_fetch_pet_types_data() |
|
@@ 394-402 (lines=9) @@
|
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
/** @test */ |
| 394 |
|
public function api_can_fetch_pet_types_data() |
| 395 |
|
{ |
| 396 |
|
$response = $this->wow->getDataPetTypes(); |
| 397 |
|
|
| 398 |
|
$this->assertInstanceOf(Collection::class, $response); |
| 399 |
|
$this->assertArrayHasKey('petTypes', $response->toArray()); |
| 400 |
|
$this->assertObjectHasAttribute('name', $response->get('petTypes')[0]); |
| 401 |
|
$this->assertObjectHasAttribute('typeAbilityId', $response->get('petTypes')[0]); |
| 402 |
|
} |
| 403 |
|
} |
| 404 |
|
|