Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | 2 | public function load(ObjectManager $objectManager) |
|
16 | { |
||
17 | 2 | $c1 = new Client(); |
|
18 | 2 | $c1->setAllowedGrantTypes( |
|
19 | 2 | ['password', 'refresh_token', 'token'] |
|
20 | ); |
||
21 | 2 | $c1->setType('backend'); |
|
22 | 2 | $this->addReference('new-client', $c1); |
|
23 | |||
24 | 2 | $objectManager->persist($c1); |
|
25 | 2 | $objectManager->flush(); |
|
26 | 2 | } |
|
27 | |||
36 |