GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

RegistryManagerTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCreateRegistry() 0 7 1
A testSaveRegistry() 0 12 1
1
<?php
2
3
/*
4
 * This file is part of the CCDNForum ForumBundle
5
 *
6
 * (c) CCDN (c) CodeConsortium <http://www.codeconsortium.com/>
7
 *
8
 * Available on github <http://www.github.com/codeconsortium/>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace CCDNForum\ForumBundle\Tests\Manager;
15
16
use Doctrine\Common\Collections\ArrayCollection;
17
use CCDNForum\ForumBundle\Tests\TestBase;
18
19
class RegistryManagerTest extends TestBase
20
{
21
	public function testCreateRegistry()
22
	{
23
		$this->purge();
24
		$registry = $this->getRegistryModel()->createRegistry();
25
		
26
		$this->assertInstanceOf('CCDNForum\ForumBundle\Entity\Registry', $registry);
27
	}
28
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