Code Duplication    Length = 17-17 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Bookmark/Gateway/DoctrineDatabaseTest.php 1 location

@@ 36-52 (lines=17) @@
33
    /**
34
     * @covers \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase::insertBookmark
35
     */
36
    public function testInsertBookmark()
37
    {
38
        $id = $this->getGateway()->insertBookmark(new Bookmark([
39
            'userId' => 14,
40
            'locationId' => 54,
41
            'name' => 'Lorem ipsum dolor...',
42
        ]));
43
44
        $data = $this->loadBookmark($id);
45
46
        $this->assertEquals([
47
            'id' => $id,
48
            'name' => 'Lorem ipsum dolor...',
49
            'node_id' => '54',
50
            'user_id' => '14',
51
        ], $data);
52
    }
53
54
    /**
55
     * @covers \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase::deleteBookmark

eZ/Publish/Core/Persistence/Legacy/Tests/UserPreference/Gateway/DoctrineDatabaseTest.php 1 location

@@ 40-56 (lines=17) @@
37
    /**
38
     * @covers \eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway::setUserPreference()
39
     */
40
    public function testInsert()
41
    {
42
        $id = $this->getGateway()->setUserPreference(new UserPreferenceSetStruct([
43
            'userId' => 14,
44
            'name' => 'setting_3',
45
            'value' => 'value_3',
46
        ]));
47
48
        $data = $this->loadUserPreference($id);
49
50
        $this->assertEquals([
51
            'id' => $id,
52
            'user_id' => '14',
53
            'name' => 'setting_3',
54
            'value' => 'value_3',
55
        ], $data);
56
    }
57
58
    /**
59
     * @covers \eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway::setUserPreference()