Code Duplication    Length = 13-13 lines in 2 locations

Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 2 locations

@@ 607-619 (lines=13) @@
604
        $this->assertDICDefinitionMethodCallOnce($definition, 'addCustomDatetimeFunction', array('test_datetime', 'Symfony\Bundle\DoctrineBundle\Tests\DependencyInjection\TestDatetimeFunction'));
605
    }
606
607
    public function testSetNamingStrategy()
608
    {
609
        if (version_compare(Version::VERSION, "2.3.0-DEV") < 0) {
610
            $this->markTestSkipped('Naming Strategies are not available');
611
        }
612
        $container = $this->loadContainer('orm_namingstrategy');
613
614
        $def1 = $container->getDefinition('doctrine.orm.em1_configuration');
615
        $def2 = $container->getDefinition('doctrine.orm.em2_configuration');
616
617
        $this->assertDICDefinitionMethodCallOnce($def1, 'setNamingStrategy', array(0 => new Reference('doctrine.orm.naming_strategy.default')));
618
        $this->assertDICDefinitionMethodCallOnce($def2, 'setNamingStrategy', array(0 => new Reference('doctrine.orm.naming_strategy.underscore')));
619
    }
620
621
    public function testSetQuoteStrategy()
622
    {
@@ 621-633 (lines=13) @@
618
        $this->assertDICDefinitionMethodCallOnce($def2, 'setNamingStrategy', array(0 => new Reference('doctrine.orm.naming_strategy.underscore')));
619
    }
620
621
    public function testSetQuoteStrategy()
622
    {
623
        if (version_compare(Version::VERSION, "2.3.0-DEV") < 0) {
624
            $this->markTestSkipped('Quote Strategies are not available');
625
        }
626
        $container = $this->loadContainer('orm_quotestrategy');
627
628
        $def1 = $container->getDefinition('doctrine.orm.em1_configuration');
629
        $def2 = $container->getDefinition('doctrine.orm.em2_configuration');
630
631
        $this->assertDICDefinitionMethodCallOnce($def1, 'setQuoteStrategy', array(0 => new Reference('doctrine.orm.quote_strategy.default')));
632
        $this->assertDICDefinitionMethodCallOnce($def2, 'setQuoteStrategy', array(0 => new Reference('doctrine.orm.quote_strategy.ansi')));
633
    }
634
635
    public function testSecondLevelCache()
636
    {