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::testCreateRegistry()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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