Code Duplication    Length = 12-16 lines in 17 locations

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

@@ 14-27 (lines=14) @@
11
 */
12
class DefaultValuesTest extends OrmFunctionalTestCase
13
{
14
    protected function setUp()
15
    {
16
        parent::setUp();
17
        try {
18
            $this->_schemaTool->createSchema(
19
                [
20
                $this->_em->getClassMetadata(DefaultValueUser::class),
21
                $this->_em->getClassMetadata(DefaultValueAddress::class)
22
                ]
23
            );
24
        } catch (\Exception $e) {
25
            // Swallow all exceptions. We do not test the schema tool here.
26
        }
27
    }
28
29
    /**
30
     * @group non-cacheable

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

@@ 17-30 (lines=14) @@
14
 */
15
class NotifyPolicyTest extends OrmFunctionalTestCase
16
{
17
    protected function setUp()
18
    {
19
        parent::setUp();
20
        try {
21
            $this->_schemaTool->createSchema(
22
                [
23
                $this->_em->getClassMetadata(NotifyUser::class),
24
                $this->_em->getClassMetadata(NotifyGroup::class)
25
                ]
26
            );
27
        } catch (\Exception $e) {
28
            // Swallow all exceptions. We do not test the schema tool here.
29
        }
30
    }
31
32
    public function testChangeTracking()
33
    {

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

@@ 11-23 (lines=13) @@
8
class OneToOneInverseSideLoadAfterDqlQueryTest extends OrmFunctionalTestCase
9
{
10
11
    protected function setUp()
12
    {
13
        parent::setUp();
14
        $schemaTool = new SchemaTool($this->_em);
15
        try {
16
            $schemaTool->createSchema(
17
                [
18
                    $this->_em->getClassMetadata(Bus::class),
19
                    $this->_em->getClassMetadata(BusOwner::class),
20
                ]
21
            );
22
        } catch(\Exception $e) {}
23
    }
24
25
    public function testInverseSideOneToOneLoadedAfterDqlQuery(): void
26
    {

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

@@ 11-24 (lines=14) @@
8
 */
9
class DDC1228Test extends \Doctrine\Tests\OrmFunctionalTestCase
10
{
11
    public function setUp()
12
    {
13
        parent::setUp();
14
        try {
15
            $this->_schemaTool->createSchema(
16
                [
17
                $this->_em->getClassMetadata(DDC1228User::class),
18
                $this->_em->getClassMetadata(DDC1228Profile::class),
19
                ]
20
            );
21
        } catch(\Exception $e) {
22
23
        }
24
    }
25
26
    public function testOneToOnePersist()
27
    {

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

@@ 10-22 (lines=13) @@
7
 */
8
class DDC1383Test extends \Doctrine\Tests\OrmFunctionalTestCase
9
{
10
    protected function setUp()
11
    {
12
        parent::setUp();
13
14
        try {
15
            $this->_schemaTool->createSchema(
16
                [
17
                $this->_em->getClassMetadata(DDC1383AbstractEntity::class),
18
                $this->_em->getClassMetadata(DDC1383Entity::class),
19
                ]
20
            );
21
        } catch(\Exception $ignored) {}
22
    }
23
24
    public function testFailingCase()
25
    {

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

@@ 12-25 (lines=14) @@
9
 */
10
class DDC1392Test extends \Doctrine\Tests\OrmFunctionalTestCase
11
{
12
    protected function setUp()
13
    {
14
        parent::setUp();
15
16
        try {
17
            $this->_schemaTool->createSchema(
18
                [
19
                $this->_em->getClassMetadata(DDC1392File::class),
20
                $this->_em->getClassMetadata(DDC1392Picture::class),
21
                ]
22
            );
23
        } catch (\Exception $ignored) {
24
        }
25
    }
26
27
    public function testFailingCase()
28
    {

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

@@ 12-25 (lines=14) @@
9
 */
10
class DDC1454Test extends \Doctrine\Tests\OrmFunctionalTestCase
11
{
12
    protected function setUp()
13
    {
14
        parent::setUp();
15
16
        try {
17
            $this->_schemaTool->createSchema(
18
                [
19
                    $this->_em->getClassMetadata(DDC1454File::class),
20
                    $this->_em->getClassMetadata(DDC1454Picture::class),
21
                ]
22
            );
23
        } catch (\Exception $ignored) {
24
        }
25
    }
26
27
    public function testFailingCase()
28
    {

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

@@ 10-24 (lines=15) @@
7
 */
8
class DDC1461Test extends \Doctrine\Tests\OrmFunctionalTestCase
9
{
10
    public function setUp()
11
    {
12
        parent::setUp();
13
14
        try {
15
            $this->_schemaTool->createSchema(
16
                [
17
                $this->_em->getClassMetadata(DDC1461TwitterAccount::class),
18
                $this->_em->getClassMetadata(DDC1461User::class)
19
                ]
20
            );
21
        } catch(\Exception $e) {
22
23
        }
24
    }
25
26
    public function testChangeDetectionDeferredExplicit()
27
    {

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

@@ 11-23 (lines=13) @@
8
9
class DDC1690Test extends \Doctrine\Tests\OrmFunctionalTestCase
10
{
11
    protected function setUp() {
12
        parent::setUp();
13
        try {
14
            $this->_schemaTool->createSchema(
15
                [
16
                $this->_em->getClassMetadata(DDC1690Parent::class),
17
                $this->_em->getClassMetadata(DDC1690Child::class)
18
                ]
19
            );
20
        } catch (\Exception $e) {
21
            // Swallow all exceptions. We do not test the schema tool here.
22
        }
23
    }
24
25
    public function testChangeTracking()
26
    {

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

@@ 13-27 (lines=15) @@
10
 */
11
class DDC1707Test extends OrmFunctionalTestCase
12
{
13
    public function setUp()
14
    {
15
        parent::setUp();
16
17
        try {
18
            $this->_schemaTool->createSchema(
19
                [
20
                $this->_em->getClassMetadata(DDC1509File::class),
21
                $this->_em->getClassMetadata(DDC1509Picture::class),
22
                ]
23
            );
24
        } catch (\Exception $ignored) {
25
26
        }
27
    }
28
29
    public function testPostLoadOnChild()
30
    {

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

@@ 9-20 (lines=12) @@
6
7
class DDC353Test extends \Doctrine\Tests\OrmFunctionalTestCase
8
{
9
    protected function setUp()
10
    {
11
        parent::setUp();
12
        try {
13
            $this->_schemaTool->createSchema(
14
                [
15
                $this->_em->getClassMetadata(DDC353File::class),
16
                $this->_em->getClassMetadata(DDC353Picture::class),
17
                ]
18
            );
19
        } catch(\Exception $ignored) {}
20
    }
21
22
    public function testWorkingCase()
23
    {

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

@@ 8-21 (lines=14) @@
5
class DDC440Test extends \Doctrine\Tests\OrmFunctionalTestCase
6
{
7
8
    protected function setUp()
9
    {
10
        parent::setUp();
11
        try {
12
            $this->_schemaTool->createSchema(
13
                [
14
                $this->_em->getClassMetadata(DDC440Phone::class),
15
                $this->_em->getClassMetadata(DDC440Client::class)
16
                ]
17
            );
18
        } catch (\Exception $e) {
19
            // Swallow all exceptions. We do not test the schema tool here.
20
        }
21
    }
22
23
    /**
24
     * @group DDC-440

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

@@ 9-22 (lines=14) @@
6
7
class DDC633Test extends \Doctrine\Tests\OrmFunctionalTestCase
8
{
9
    protected function setUp()
10
    {
11
        parent::setUp();
12
        try {
13
            $this->_schemaTool->createSchema(
14
                [
15
                $this->_em->getClassMetadata(DDC633Patient::class),
16
                $this->_em->getClassMetadata(DDC633Appointment::class),
17
                ]
18
            );
19
        } catch(\Exception $e) {
20
21
        }
22
    }
23
24
    /**
25
     * @group DDC-633

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

@@ 7-20 (lines=14) @@
4
5
class DDC698Test extends \Doctrine\Tests\OrmFunctionalTestCase
6
{
7
    protected function setUp()
8
    {
9
        parent::setUp();
10
        try {
11
            $this->_schemaTool->createSchema(
12
                [
13
                $this->_em->getClassMetadata(DDC698Role::class),
14
                $this->_em->getClassMetadata(DDC698Privilege::class)
15
                ]
16
            );
17
        } catch(\Exception $e) {
18
19
        }
20
    }
21
22
    public function testTicket()
23
    {

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

@@ 10-25 (lines=16) @@
7
8
class DDC729Test extends \Doctrine\Tests\OrmFunctionalTestCase
9
{
10
    public function setUp()
11
    {
12
        parent::setUp();
13
14
        try {
15
            $schemaTool = new \Doctrine\ORM\Tools\SchemaTool($this->_em);
16
            $schemaTool->createSchema(
17
                [
18
                $this->_em->getClassMetadata(DDC729A::class),
19
                $this->_em->getClassMetadata(DDC729B::class),
20
                ]
21
            );
22
        } catch(\Exception $e) {
23
24
        }
25
    }
26
27
    public function testMergeManyToMany()
28
    {

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

@@ 9-22 (lines=14) @@
6
7
class DDC735Test extends \Doctrine\Tests\OrmFunctionalTestCase
8
{
9
    protected function setUp()
10
    {
11
        parent::setUp();
12
        try {
13
            $this->_schemaTool->createSchema(
14
                [
15
                $this->_em->getClassMetadata(DDC735Product::class),
16
                $this->_em->getClassMetadata(DDC735Review::class)
17
                ]
18
            );
19
        } catch(\Exception $e) {
20
21
        }
22
    }
23
24
    public function testRemoveElement_AppliesOrphanRemoval()
25
    {

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

@@ 9-22 (lines=14) @@
6
7
class DDC960Test extends OrmFunctionalTestCase
8
{
9
    protected function setUp()
10
    {
11
        parent::setUp();
12
        try {
13
            $this->_schemaTool->createSchema(
14
                [
15
                $this->_em->getClassMetadata(DDC960Root::class),
16
                $this->_em->getClassMetadata(DDC960Child::class)
17
                ]
18
            );
19
        } catch(\Exception $e) {
20
21
        }
22
    }
23
24
    /**
25
     * @group DDC-960