Completed
Push — master ( 037cc5...776a32 )
by Guillermo A.
09:42
created

PeopleTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFindByCompanyId() 0 7 1
1
<?php
2
3
namespace GuillermoandraeTest\Highrise\Repositories;
4
5
use GuillermoandraeTest\Highrise\TestCase;
6
7
class PeopleTest extends TestCase
8
{
9
    public function testFindByCompanyId()
10
    {
11
        $id = 10;
12
        $body = '<people type="array"><person>1</person></people>';
13
        $resource = $this->getMockRepository('people', $body);
14
        $resource->findByCompanyId($id);
0 ignored issues
show
Bug introduced by
The method findByCompanyId() does not exist on Guillermoandrae\Repositories\RepositoryInterface. It seems like you code against a sub-type of Guillermoandrae\Repositories\RepositoryInterface such as Guillermoandrae\Highrise...tories\PeopleRepository or Guillermoandrae\Highrise...tories\PeopleRepository. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

14
        $resource->/** @scrutinizer ignore-call */ 
15
                   findByCompanyId($id);
Loading history...
15
        $this->assertSameLastRequestUri("/companies/$id/people.xml", $resource);
16
    }
17
}
18