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.
Passed
Pull Request — master (#58)
by joseph
17:08
created

SetEmbeddableCommandTest::testSetEmbeddable()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 28
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 13
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command;
4
5
use EdmondsCommerce\DoctrineStaticMeta\AbstractIntegrationTest;
6
use EdmondsCommerce\DoctrineStaticMeta\Entity\Embeddable\Traits\Financial\HasMoneyEmbeddableTrait;
7
use EdmondsCommerce\DoctrineStaticMeta\Entity\Embeddable\Traits\Geo\HasAddressEmbeddableTrait;
8
use EdmondsCommerce\DoctrineStaticMeta\Entity\Embeddable\Traits\Identity\HasFullNameEmbeddableTrait;
9
10
class SetEmbeddableCommandTest extends AbstractCommandIntegrationTest
11
{
12
    public const WORK_DIR = AbstractIntegrationTest::VAR_PATH.'/'.self::TEST_TYPE.'/SetEmbeddableCommandTest/';
13
14
15
    public function testSetEmbeddable()
16
    {
17
        $command  = $this->container->get(SetEmbeddableCommand::class);
18
        $tester   = $this->getCommandTester($command);
19
        $entities = $this->generateEntities();
20
21
        $tester->execute(
22
            [
23
                '-'.SetEmbeddableCommand::OPT_ENTITY_SHORT     => $entities[0],
24
                '-'.SetEmbeddableCommand::OPT_EMBEDDABLE_SHORT => HasMoneyEmbeddableTrait::class,
25
            ]
26
        );
27
28
        $tester->execute(
29
            [
30
                '-'.SetEmbeddableCommand::OPT_ENTITY_SHORT     => $entities[1],
31
                '-'.SetEmbeddableCommand::OPT_EMBEDDABLE_SHORT => HasFullNameEmbeddableTrait::class,
32
            ]
33
        );
34
35
        $tester->execute(
36
            [
37
                '--'.SetEmbeddableCommand::OPT_ENTITY     => $entities[2],
38
                '--'.SetEmbeddableCommand::OPT_EMBEDDABLE => HasAddressEmbeddableTrait::class,
39
            ]
40
        );
41
42
        $this->assertTrue($this->qaGeneratedCode());
43
    }
44
}
45