Failed Conditions
Pull Request — master (#7155)
by Gabriel
11:34
created

GH6682Test::testIssue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 12
nc 1
nop 0
dl 0
loc 19
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\ORM\Functional\Ticket;
6
7
use Doctrine\ORM\Mapping\ClassMetadata;
8
use Doctrine\Tests\OrmFunctionalTestCase;
9
10
final class GH6682Test extends OrmFunctionalTestCase
11
{
12
    /**
13
     * @group 6682
14
     */
15
    public function testIssue() : void
16
    {
17
        self::markTestIncomplete(
18
            '@guilhermeblanco, in #6683 we added allocationSize/initialValue as to the sequence definition but with the'
19
            . ' changes you have made I am not sure if we should rather test this relying on the mapping drivers instead'
20
        );
21
22
        $parsedDefinition = [
23
            'sequenceName'   => 'test_sequence',
24
            'allocationSize' => '',
25
            'initialValue'   => '',
26
        ];
27
28
        $classMetadataInfo = new ClassMetadata('test_entity');
29
        $classMetadataInfo->setSequenceGeneratorDefinition($parsedDefinition);
30
31
        self::assertSame(
32
            ['sequenceName' => 'test_sequence', 'allocationSize' => '1', 'initialValue' => '1'],
33
            $classMetadataInfo->sequenceGeneratorDefinition
34
        );
35
    }
36
}
37