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

GenerateEmbeddableFromArchetypeCommandTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateEmbeddableFromArchetype() 0 16 1
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