Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
3 | class SupportTest extends AimeosTestAbstract |
||
4 | { |
||
5 | public function testCheckUserGroup() |
||
6 | { |
||
7 | $context = $this->app->make( '\Aimeos\Shop\Base\Context' ); |
||
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'; |
||
|
|||
13 | |||
14 | $this->assertFalse( $object->checkUserGroup( $user, 'admin' ) ); |
||
15 | } |
||
16 | |||
17 | |||
18 | public function testGetGroups() |
||
29 | } |
||
30 | } |
||
31 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.