Code Duplication    Length = 11-15 lines in 6 locations

tests/Doctrine/Tests/ORM/Functional/MergeSharedEntitiesTest.php 1 location

@@ 13-26 (lines=14) @@
10
    /**
11
     * {@inheritDoc}
12
     */
13
    protected function setUp()
14
    {
15
        parent::setUp();
16
17
        try {
18
            $this->_schemaTool->createSchema(
19
                [
20
                $this->_em->getClassMetadata(MSEFile::class),
21
                $this->_em->getClassMetadata(MSEPicture::class),
22
                ]
23
            );
24
        } catch (ToolsException $ignored) {
25
        }
26
    }
27
28
    public function testMergeSharedNewEntities()
29
    {

tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2230Test.php 1 location

@@ 16-28 (lines=13) @@
13
 */
14
class DDC2230Test extends OrmFunctionalTestCase
15
{
16
    protected function setUp()
17
    {
18
        parent::setUp();
19
20
        try {
21
            $this->_schemaTool->createSchema(
22
                [
23
                $this->_em->getClassMetadata(DDC2230User::class),
24
                $this->_em->getClassMetadata(DDC2230Address::class),
25
                ]
26
            );
27
        } catch (ToolsException $e) {}
28
    }
29
30
    public function testNotifyTrackingNotCalledOnUninitializedProxies()
31
    {

tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2862Test.php 1 location

@@ 13-27 (lines=15) @@
10
 */
11
class DDC2862Test extends \Doctrine\Tests\OrmFunctionalTestCase
12
{
13
    public function setUp()
14
    {
15
        $this->enableSecondLevelCache();
16
        parent::setUp();
17
18
        try {
19
            $this->_schemaTool->createSchema(
20
                [
21
                $this->_em->getClassMetadata(DDC2862User::class),
22
                $this->_em->getClassMetadata(DDC2862Driver::class),
23
                ]
24
            );
25
        } catch (ToolsException $exc) {
26
        }
27
    }
28
29
    public function testIssue()
30
    {

tests/Doctrine/Tests/ORM/Functional/Ticket/GH5562Test.php 1 location

@@ 12-25 (lines=14) @@
9
10
final class GH5562Test extends OrmFunctionalTestCase
11
{
12
    protected function setUp()
13
    {
14
        $this->enableSecondLevelCache();
15
16
        parent::setUp();
17
18
        $this->_schemaTool->createSchema(
19
            [
20
                $this->_em->getClassMetadata(GH5562User::class),
21
                $this->_em->getClassMetadata(GH5562Manager::class),
22
                $this->_em->getClassMetadata(GH5562Merchant::class),
23
            ]
24
        );
25
    }
26
27
    /**
28
     * @group 5562

tests/Doctrine/Tests/ORM/Functional/Ticket/DDC6303Test.php 1 location

@@ 14-26 (lines=13) @@
11
 */
12
class DDC6303Test extends OrmFunctionalTestCase
13
{
14
    public function setUp() : void
15
    {
16
        parent::setUp();
17
18
        try {
19
            $this->_schemaTool->createSchema([
20
                $this->_em->getClassMetadata(DDC6303BaseClass::class),
21
                $this->_em->getClassMetadata(DDC6303ChildA::class),
22
                $this->_em->getClassMetadata(DDC6303ChildB::class),
23
            ]);
24
        } catch (ToolsException $ignored) {
25
        }
26
    }
27
28
    public function testMixedTypeHydratedCorrectlyInJoinedInheritance() : void
29
    {

tests/Doctrine/Tests/ORM/Functional/Ticket/GH6217Test.php 1 location

@@ 11-21 (lines=11) @@
8
 */
9
final class GH6217Test extends OrmFunctionalTestCase
10
{
11
    public function setUp() : void
12
    {
13
        $this->enableSecondLevelCache();
14
15
        parent::setUp();
16
17
        $this->_schemaTool->createSchema([
18
            $this->_em->getClassMetadata(GH6217AssociatedEntity::class),
19
            $this->_em->getClassMetadata(GH6217FetchedEntity::class),
20
        ]);
21
    }
22
23
    public function testLoadingOfSecondLevelCacheOnEagerAssociations() : void
24
    {