30 lines
789 B
PHP
30 lines
789 B
PHP
|
<?php
|
||
|
|
||
|
namespace Doctrine\Test\ORM\Functional\Ticket;
|
||
|
|
||
|
use Doctrine\ORM\Mapping\ClassMetadataInfo;
|
||
|
use Doctrine\Tests\OrmFunctionalTestCase;
|
||
|
|
||
|
final class GH6682Test extends OrmFunctionalTestCase
|
||
|
{
|
||
|
/**
|
||
|
* @group 6682
|
||
|
*/
|
||
|
public function testIssue() : void
|
||
|
{
|
||
|
$parsedDefinition = [
|
||
|
'sequenceName' => 'test_sequence',
|
||
|
'allocationSize' => '',
|
||
|
'initialValue' => '',
|
||
|
];
|
||
|
|
||
|
$classMetadataInfo = new ClassMetadataInfo('test_entity');
|
||
|
$classMetadataInfo->setSequenceGeneratorDefinition($parsedDefinition);
|
||
|
|
||
|
self::assertSame(
|
||
|
['sequenceName' => 'test_sequence', 'allocationSize' => '1', 'initialValue' => '1'],
|
||
|
$classMetadataInfo->sequenceGeneratorDefinition
|
||
|
);
|
||
|
}
|
||
|
}
|