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 ( 75bdf9...8faa57 )
by joseph
83:56 queued 81:04
created

Traits/PrimaryKey/IntegerIdFieldTraitTest.php (1 issue)

1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Large\Entity\Fields\Traits\PrimaryKey;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Generator\Field\IdTrait;
6
use EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\Interfaces\PrimaryKey\IdFieldInterface;
7
use EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\Traits\PrimaryKey\IntegerIdFieldTrait;
8
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractTest;
9
10
/**
11
 * @covers \EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\Traits\PrimaryKey\IntegerIdFieldTrait
12
 * @SuppressWarnings(PHPMD.DepthOfInheritance)
13
 */
14
class IntegerIdFieldTraitTest extends IdFieldTraitTest
15
{
16
    public const    WORK_DIR        = AbstractTest::VAR_PATH .
17
                                      '/' .
18
                                      self::TEST_TYPE_LARGE .
19
                                      '/IntegerIdFieldTraitTest/';
20
    protected const TEST_FIELD_FQN  = IntegerIdFieldTrait::class;
21
    protected const TEST_FIELD_PROP = IdFieldInterface::PROP_ID;
22
    protected const VALIDATES       = false;
23
24
    public function generateCode()
25
    {
26
        $this->getEntityGenerator()
0 ignored issues
show
Deprecated Code introduced by
The function EdmondsCommerce\Doctrine...or::setPrimaryKeyType() has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

26
        /** @scrutinizer ignore-deprecated */ $this->getEntityGenerator()
Loading history...
27
             ->setPrimaryKeyType(IdTrait::INTEGER_ID_FIELD_TRAIT)
28
             ->generateEntity(static::TEST_ENTITY_FQN_BASE . $this->entitySuffix);
29
    }
30
31
    protected function validateSavedEntity($entity)
32
    {
33
        $id = $entity->getId();
34
        self::assertNotEmpty($id);
35
        self::assertInternalType('int', $id);
36
    }
37
}
38