Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | protected function setUp() |
||
12 | { |
||
13 | parent::setUp(); |
||
14 | |||
15 | /** @var UserManagerInterface|\PHPUnit_Framework_MockObject_MockObject $userManager */ |
||
16 | $userManager = $this->getMock('FOS\UserBundle\Model\UserManagerInterface'); |
||
17 | $userManager->expects($this->any()) |
||
18 | ->method('createUser') |
||
19 | ->will($this->returnValue(new TestUser())); |
||
20 | |||
21 | $this->hydrator = new LegacyHydrator($userManager); |
||
22 | $config = $this->getDefaultUserConfig(); |
||
23 | $this->hydrator->setAttributeMap($config['attributes']); |
||
24 | } |
||
26 |