Code Duplication    Length = 21-26 lines in 2 locations

spec/Model/Article/CategorySpec.php 1 location

@@ 17-37 (lines=21) @@
14
        $this->shouldHaveType(Category::class);
15
    }
16
17
    function let()
18
    {
19
        $translation = [
20
            'locale'      => 'en',
21
            'title'       => 'English translation',
22
            'description' => 'Big text',
23
        ];
24
25
        $data = [
26
            'id'                 => '3',
27
            'translations'       => ['en' => $translation],
28
            'enabled'            => 1,
29
            'dataParent'         => '11',
30
            'parentRootId'       => '123',
31
            'createdAt'          => ['date' => '2011-05-19 20:46:21.000000', 'timezone_type' => 3, 'timezone' => 'UTC'],
32
            'updatedAt'          => ['date' => '2016-01-11 00:00:00.000000', 'timezone_type' => 3, 'timezone' => 'UTC'],
33
            'inheritance_status' => 'none',
34
        ];
35
36
        $this->beConstructedWith($data);
37
    }
38
39
    function it_should_be_hydrated()
40
    {

spec/Model/Location/LocationSpec.php 1 location

@@ 17-42 (lines=26) @@
14
        $this->shouldHaveType(Location::class);
15
    }
16
17
    function let()
18
    {
19
        $translation = [
20
            'title'        => 'Some location',
21
            'openingHours' => '24/7',
22
        ];
23
24
        $data = [
25
            'id'                 => '3',
26
            'tel'                => '+1 123 456 78 90',
27
            'fax'                => '+2 456 111 78 90',
28
            'mail'               => '[email protected]',
29
            'address'            => '88 St Patrick St',
30
            'postalCode'         => 'M5T 1V1',
31
            'town'               => 'City',
32
            'latitude'           => '43.6527222',
33
            'longitude'          => '-79.3918831',
34
            'country'            => 'Canada',
35
            'defaultLocation'    => 0,
36
            'dataParent'         => '11',
37
            'translations'       => ['en' => $translation],
38
            'inheritance_status' => 'overridden',
39
        ];
40
41
        $this->beConstructedWith($data);
42
    }
43
44
    function it_should_be_hydrated()
45
    {