Code Duplication    Length = 12-12 lines in 2 locations

tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php 1 location

@@ 174-185 (lines=12) @@
171
     * @depends testTypeIsExported
172
     * @param ClassMetadata $class
173
     */
174
    public function testIdentifierIsExported($class)
175
    {
176
        self::assertNotNull($class->getProperty('id'));
177
178
        $property = $class->getProperty('id');
179
180
        self::assertTrue($property->isPrimaryKey());
181
        self::assertEquals(['id'], $class->identifier);
182
        self::assertEquals(GeneratorType::IDENTITY, $class->getProperty('id')->getValueGenerator()->getType(), "Generator Type wrong");
183
184
        return $class;
185
    }
186
187
    /**
188
     * @depends testIdentifierIsExported

tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php 1 location

@@ 330-341 (lines=12) @@
327
     * @depends testProperties
328
     * @param ClassMetadata $class
329
     */
330
    public function testIdentifier($class)
331
    {
332
        self::assertNotNull($class->getProperty('id'));
333
334
        $property = $class->getProperty('id');
335
336
        self::assertEquals('integer', $property->getTypeName());
337
        self::assertEquals(['id'], $class->identifier);
338
        self::assertEquals(Mapping\GeneratorType::AUTO, $property->getValueGenerator()->getType(), "ID-Generator is not GeneratorType::AUTO");
339
340
        return $class;
341
    }
342
343
    /**
344
     * @group #6129