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 ( 6a4e57...36c412 )
by joseph
26:54
created

AbstractLargeTest::getEntitySaver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Assets;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command\AbstractCommand;
6
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Generator\AbstractGenerator;
7
use EdmondsCommerce\DoctrineStaticMeta\Entity\Savers\EntitySaver;
8
use EdmondsCommerce\DoctrineStaticMeta\Entity\Savers\EntitySaverInterface;
9
use EdmondsCommerce\DoctrineStaticMeta\Schema\Database;
10
use EdmondsCommerce\DoctrineStaticMeta\Schema\Schema;
11
12
abstract class AbstractLargeTest extends AbstractTest
13
{
14
    protected function setupCopiedWorkDirAndCreateDatabase(): void
15
    {
16
        $this->setupCopiedWorkDir();
17
        $this->createDatabase();
18
    }
19
20
    /**
21
     * @return string
22
     * @throws \EdmondsCommerce\DoctrineStaticMeta\Exception\ConfigException
23
     * @throws \EdmondsCommerce\DoctrineStaticMeta\Exception\DoctrineStaticMetaException
24
     * @throws \ReflectionException
25
     */
26
    protected function setupCopiedWorkDir(): string
27
    {
28
        $copiedWorkDir = parent::setupCopiedWorkDir();
29
        $this->setupContainer(
30
            $copiedWorkDir
31
            . '/' . AbstractCommand::DEFAULT_SRC_SUBFOLDER
32
            . '/' . AbstractGenerator::ENTITIES_FOLDER_NAME
33
        );
34
35
        return $copiedWorkDir;
36
    }
37
38
    protected function createDatabase(): void
39
    {
40
        $database = $this->container->get(Database::class);
41
        $database->drop(true);
42
        $database->create(true);
43
        $schema = $this->container->get(Schema::class);
44
        $schema->create();
45
        $schema->validate();
46
    }
47
48
    /**
49
     * @return EntitySaverInterface
50
     * @throws \EdmondsCommerce\DoctrineStaticMeta\Exception\DoctrineStaticMetaException
51
     */
52
    protected function getEntitySaver(): EntitySaverInterface
53
    {
54
        return $this->container->get(EntitySaver::class);
55
    }
56
}
57