aimeos /
aimeos-laravel
| 1 | <?php |
||
| 2 | |||
| 3 | class SupportTest extends AimeosTestAbstract |
||
| 4 | { |
||
| 5 | public function testCheckUserGroup() |
||
| 6 | { |
||
| 7 | $context = $this->app->make( '\Aimeos\Shop\Base\Context' ); |
||
|
0 ignored issues
–
show
|
|||
| 8 | $locale = $this->app->make( '\Aimeos\Shop\Base\Locale' ); |
||
| 9 | |||
| 10 | $object = new \Aimeos\Shop\Base\Support( $context, $locale ); |
||
| 11 | $user = new \Illuminate\Foundation\Auth\User(); |
||
| 12 | $user->siteid = '0'; |
||
|
0 ignored issues
–
show
|
|||
| 13 | |||
| 14 | $this->assertFalse( $object->checkUserGroup( $user, 'admin' ) ); |
||
| 15 | } |
||
| 16 | } |
||
| 17 |
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.