Code Duplication    Length = 11-11 lines in 2 locations

spec/Model/Article/CategorySpec.php 1 location

@@ 39-49 (lines=11) @@
36
        $this->beConstructedWith($data);
37
    }
38
39
    function it_should_be_hydrated()
40
    {
41
        $this->getId()->shouldReturn(3);
42
        $this->getTranslations()->shouldHaveCount(1);
43
        $this->isEnabled()->shouldReturn(true);
44
        $this->getDataParentId()->shouldReturn(11);
45
        $this->getParentRootId()->shouldReturn(123);
46
        $this->getCreatedAt()->shouldBeLike(new \DateTime('2011-05-19 20:46:21'));
47
        $this->getUpdatedAt()->shouldBeLike(new \DateTime('2016-01-11 00:00:00'));
48
        $this->getInheritanceStatus()->shouldReturn(InheritanceStatuses::NONE);
49
    }
50
}
51

spec/Model/Field/FieldSpec.php 1 location

@@ 35-45 (lines=11) @@
32
        $this->beConstructedWith($data);
33
    }
34
35
    function it_should_be_hydrated()
36
    {
37
        $this->getId()->shouldReturn(7);
38
        $this->getToken()->shouldReturn('required-field');
39
        $this->getDescription()->shouldReturn('Some information about it');
40
        $this->getTranslations()->shouldHaveCount(1);
41
        $this->getDataParentId()->shouldReturn(8);
42
        $this->getCreatedAt()->shouldBeLike(new \DateTime('2011-05-19 20:46:21'));
43
        $this->getUpdatedAt()->shouldBeLike(new \DateTime('2016-01-11 00:00:00'));
44
        $this->getInheritanceStatus()->shouldReturn(InheritanceStatuses::INHERITED);
45
    }
46
}
47