aimeos /
aimeos-laravel
| 1 | <?php |
||
| 2 | |||
| 3 | class ConfigTest extends AimeosTestAbstract |
||
| 4 | { |
||
| 5 | public function testGet() |
||
| 6 | { |
||
| 7 | $aimeos = $this->app->make( '\Aimeos\Shop\Base\Aimeos' ); |
||
|
0 ignored issues
–
show
|
|||
| 8 | |||
| 9 | $configMock = $this->getMockBuilder( '\Illuminate\Config\Repository' ) |
||
| 10 | ->onlyMethods( array( 'get' ) )->getMock(); |
||
| 11 | |||
| 12 | $configMock->expects( $this->exactly( 4 ) )->method( 'get' ) |
||
| 13 | ->will( $this->onConsecutiveCalls( true, 'laravel:', array(), array() ) ); |
||
| 14 | |||
| 15 | $object = new \Aimeos\Shop\Base\Config( $configMock, $aimeos ); |
||
| 16 | |||
| 17 | $this->assertInstanceOf( '\Aimeos\Base\Config\Iface', $object->get() ); |
||
| 18 | } |
||
| 19 | } |
||
| 20 |
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.