| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 27 | public function testSetIdentifier() |
||
| 28 | { |
||
| 29 | /** @var Clients $clients */ |
||
| 30 | $clients = \Mockery::mock(Clients::class)->makePartial(); |
||
| 31 | $clients->shouldReceive('getFields')->andReturn(['id', 'identifier', 'secret']); |
||
| 32 | $clients->shouldReceive('getPrimaryKey')->andReturn('id'); |
||
| 33 | $clients->shouldReceive('getModel')->andReturn(Client::class); |
||
| 34 | |||
| 35 | $client = $clients->getNew(); |
||
| 36 | $identifier = $client->getIdentifier(); |
||
| 37 | self::assertGreaterThan(30, strlen($identifier)); |
||
| 38 | |||
| 39 | $data = $clients->getQueryModelData($client); |
||
| 40 | self::assertArrayHasKey('identifier', $data); |
||
| 41 | } |
||
| 43 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.