Code Duplication    Length = 7-7 lines in 2 locations

Tests/AdminExtension/Knplabs/TranslatableAdminExtensionTest.php 2 locations

@@ 71-77 (lines=7) @@
68
        $this->assertEquals('es', $this->object->getLocale());
69
    }
70
71
    public function testPreUpdate()
72
    {
73
        $object = $this->prophesize('Sonata\TranslationBundle\Tests\Fixtures\Model\Knplabs\TranslatableEntity');
74
        $object->mergeNewTranslations()->shouldBeCalled();
75
76
        $this->extension->preUpdate($this->admin->reveal(), $object->reveal());
77
    }
78
79
    public function testPrePersist()
80
    {
@@ 79-85 (lines=7) @@
76
        $this->extension->preUpdate($this->admin->reveal(), $object->reveal());
77
    }
78
79
    public function testPrePersist()
80
    {
81
        $object = $this->prophesize('Sonata\TranslationBundle\Tests\Fixtures\Model\Knplabs\TranslatableEntity');
82
        $object->mergeNewTranslations()->shouldBeCalled();
83
84
        $this->extension->prePersist($this->admin->reveal(), $object->reveal());
85
    }
86
}
87