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
Push — master ( a48bd8...83d092 )
by joseph
16:18 queued 18s
created

generateEmbeddableFromArchetype()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 16
rs 9.9332
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Large\E\CodeGeneration\Command;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command\GenerateEmbeddableFromArchetypeCommand;
6
use EdmondsCommerce\DoctrineStaticMeta\Entity\Embeddable\Objects\Financial\MoneyEmbeddable;
7
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractTest;
8
9
/**
10
 * Class GenerateEmbeddableFromArchetypeCommandTest
11
 *
12
 * @package EdmondsCommerce\DoctrineStaticMeta\Tests\Large\CodeGeneration\Command
13
 * @covers \EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command\GenerateEmbeddableFromArchetypeCommand
14
 */
15
class GenerateEmbeddableFromArchetypeCommandTest extends AbstractCommandTest
16
{
17
    public const WORK_DIR = AbstractTest::VAR_PATH . '/'
18
                            . self::TEST_TYPE_LARGE . '/GenerateEmbeddableFromArchetypeCommandTest/';
19
20
    /**
21
     * @test
22
     * @large
23
     *      * @throws \EdmondsCommerce\DoctrineStaticMeta\Exception\DoctrineStaticMetaException
24
     * @throws \ReflectionException
25
     */
26
    public function generateEmbeddableFromArchetype(): void
27
    {
28
        $command = $this->container->get(GenerateEmbeddableFromArchetypeCommand::class);
29
        $tester  = $this->getCommandTester($command);
30
        $tester->execute(
31
            [
32
                '-' . GenerateEmbeddableFromArchetypeCommand::OPT_PROJECT_ROOT_PATH_SHORT         => self::WORK_DIR,
33
                '-' . GenerateEmbeddableFromArchetypeCommand::OPT_PROJECT_ROOT_NAMESPACE_SHORT    =>
34
                    self::TEST_PROJECT_ROOT_NAMESPACE,
35
                '-' . GenerateEmbeddableFromArchetypeCommand::OPT_NEW_EMBEDDABLE_CLASS_NAME_SHORT => 'PriceEmbeddable',
36
                '-' . GenerateEmbeddableFromArchetypeCommand::OPT_ARCHETYPE_OBJECT_FQN_SHORT      =>
37
                    MoneyEmbeddable::class,
38
            ]
39
        );
40
41
        self::assertTrue($this->qaGeneratedCode());
42
    }
43
}
44