Code Duplication    Length = 8-8 lines in 3 locations

tests/phpunit/tests/date/query.php 3 locations

@@ 557-564 (lines=8) @@
554
        $this->assertSame($expected, $found);
555
    }
556
557
    public function test_build_mysql_datetime_default_to_max_true() 
558
    {
559
        $q = new WP_Date_Query(array());
560
561
        $found = $q->build_mysql_datetime(
562
            array(
563
            'year' => 2011,
564
            ), true 
565
        );
566
        $this->assertSame('2011-12-31 23:59:59', $found);
567
    }
@@ 569-576 (lines=8) @@
566
        $this->assertSame('2011-12-31 23:59:59', $found);
567
    }
568
569
    public function test_build_mysql_datetime_default_to_max_false() 
570
    {
571
        $q = new WP_Date_Query(array());
572
573
        $found = $q->build_mysql_datetime(
574
            array(
575
            'year' => 2011,
576
            ), false 
577
        );
578
        $this->assertSame('2011-01-01 00:00:00', $found);
579
    }
@@ 581-588 (lines=8) @@
578
        $this->assertSame('2011-01-01 00:00:00', $found);
579
    }
580
581
    public function test_build_mysql_datetime_default_to_max_default_to_false() 
582
    {
583
        $q = new WP_Date_Query(array());
584
585
        $found = $q->build_mysql_datetime(
586
            array(
587
            'year' => 2011,
588
            ), false 
589
        );
590
        $this->assertSame('2011-01-01 00:00:00', $found);
591
    }