ItemTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 4
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_gets_items_for_an_app_by_user_id() 0 10 1
1
<?php
2
3
require_once('BaseTester.php');
4
5
/** @group Item */
6
class ItemTest extends BaseTester
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: artisan, be, call, seed
Loading history...
7
{
8
    /** @test */
9
    public function it_gets_items_for_an_app_by_user_id()
10
    {
11
        $inventory = $this->steamClient->item()->GetPlayerItems($this->appId, $this->id64);
0 ignored issues
show
Bug introduced by
The call to item() misses a required argument $appId.

This check looks for function calls that miss required arguments.

Loading history...
12
13
        $this->assertCount(3, $inventory->items);
14
15
        $item = $inventory->items->first();
16
17
        $this->checkItemProperties($item);
18
    }
19
}
20