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 (#138)
by joseph
96:08 queued 65:06
created

IntegerIdFieldTraitTest::createDatabaseSchema()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Large\Entity\Fields\Traits\PrimaryKey;
4
5
use EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\Interfaces\PrimaryKey\IdFieldInterface;
6
use EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\Traits\PrimaryKey\IntegerIdFieldTrait;
7
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractTest;
8
9
/**
10
 * @covers \EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\Traits\PrimaryKey\IntegerIdFieldTrait
11
 * @SuppressWarnings(PHPMD.DepthOfInheritance)
12
 */
13
class IntegerIdFieldTraitTest extends IdFieldTraitTest
14
{
15
    public const    WORK_DIR        = AbstractTest::VAR_PATH .
16
                                      '/' .
17
                                      self::TEST_TYPE_LARGE .
18
                                      '/IntegerIdFieldTraitTest/';
19
    protected const TEST_FIELD_FQN  = IntegerIdFieldTrait::class;
20
    protected const TEST_FIELD_PROP = IdFieldInterface::PROP_ID;
21
22
    public function generateCode()
23
    {
24
        $this->getEntityGenerator()
25
             ->setUseUuidPrimaryKey(false)
26
             ->generateEntity(static::TEST_ENTITY_FQN_BASE . $this->entitySuffix);
27
    }
28
29
    protected function validateSavedEntity($entity)
30
    {
31
        $id = $entity->getId();
32
        self::assertNotEmpty($id);
33
        self::assertInternalType('int', $id);
34
    }
35
}
36