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.
Completed
Pull Request — master (#51)
by joseph
102:38 queued 99:24
created

AbstractEntityRepositoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 24
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLoadingWithoutMetaData() 0 20 1
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Entity\Repositories;
4
5
use EdmondsCommerce\DoctrineStaticMeta\AbstractTest;
6
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Generator\AbstractGenerator;
7
8
class AbstractEntityRepositoryTest extends AbstractTest
9
{
10
    public const WORK_DIR = AbstractTest::VAR_PATH.'/AbstractEntityRepositoryTest';
11
12
    public function testLoadingWithoutMetaData()
13
    {
14
        $entityFqn     = static::TEST_PROJECT_ROOT_NAMESPACE
15
                         .'\\'.AbstractGenerator::ENTITIES_FOLDER_NAME
16
                         .'\\Yet\\Another\\TestEntity';
17
        $repositoryFqn = static::TEST_PROJECT_ROOT_NAMESPACE
18
                         .'\\'.AbstractGenerator::ENTITY_REPOSITORIES_NAMESPACE
19
                         .'\\Yet\\Another\\TestEntityRepository';
20
        $this->getEntityGenerator()->generateEntity($entityFqn);
21
        $this->setupCopiedWorkDir();
22
        $entityFqn     = $this->getCopiedFqn($entityFqn);
23
        $repositoryFqn = $this->getCopiedFqn($repositoryFqn);
24
        /**
25
         * @var AbstractEntityRepository $repository
26
         */
27
        $repository = new $repositoryFqn($this->getEntityManager());
28
        $this->assertInstanceOf($repositoryFqn, $repository);
29
        $expected = ltrim($entityFqn, '\\');
30
        $actual   = $repository->getClassName();
31
        $this->assertSame($expected, $actual);
32
    }
33
}
34