Code Duplication    Length = 7-7 lines in 2 locations

Tests/AdminExtension/Knplabs/TranslatableAdminExtensionTest.php 2 locations

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