Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
29 | public function testSaveRegistry() |
||
30 | { |
||
31 | $this->purge(); |
||
32 | $users = $this->addFixturesForUsers(); |
||
33 | $registry = $this->getRegistryModel()->createRegistry(); |
||
34 | $registry->setOwnedBy($users['tom']); |
||
35 | $this->getRegistryModel()->saveRegistry($registry); |
||
36 | $foundRegistry = $this->getRegistryModel()->findOneRegistryForUserById($users['tom']->getId()); |
||
37 | |||
38 | $this->assertNotNull($foundRegistry); |
||
39 | $this->assertInstanceOf('CCDNForum\ForumBundle\Entity\Registry', $foundRegistry); |
||
40 | } |
||
41 | } |
||
42 |