1 | <?php |
||
16 | class DoctrineDatabaseTest extends TestCase |
||
17 | { |
||
18 | const EXISTING_BOOKMARK_ID = 1; |
||
19 | const EXISTING_BOOKMARK_DATA = [ |
||
20 | 'id' => '1', |
||
21 | 'name' => 'Lorem ipsum dolor', |
||
22 | 'node_id' => '5', |
||
23 | 'user_id' => '14', |
||
24 | ]; |
||
25 | |||
26 | public function setUp() |
||
32 | |||
33 | /** |
||
34 | * @covers \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase::insertBookmark |
||
35 | */ |
||
36 | public function testInsertBookmark() |
||
55 | |||
56 | /** |
||
57 | * @covers \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase::deleteBookmark |
||
58 | */ |
||
59 | public function testDeleteBookmark() |
||
69 | |||
70 | /** |
||
71 | * @covers \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase::loadBookmarkDataById |
||
72 | */ |
||
73 | public function testLoadBookmarkDataById() |
||
80 | |||
81 | /** |
||
82 | * @covers \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase::loadBookmarkDataByUserIdAndLocationId |
||
83 | */ |
||
84 | public function testLoadBookmarkDataByUserIdAndLocationId() |
||
93 | |||
94 | /** |
||
95 | * @covers \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase::loadUserBookmarks |
||
96 | * @dataProvider dataProviderForLoadUserBookmarks |
||
97 | */ |
||
98 | public function testLoadUserBookmarks(int $userId, int $offset, int $limit, array $expected) |
||
102 | |||
103 | /** |
||
104 | * @covers \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase::countUserBookmarks |
||
105 | * @dataProvider dataProviderForLoadUserBookmarks |
||
106 | */ |
||
107 | public function testCountUserBookmarks(int $userId, int $offset, int $limit, array $expected) |
||
111 | |||
112 | public function dataProviderForLoadUserBookmarks(): array |
||
136 | |||
137 | /** |
||
138 | * Return a ready to test DoctrineStorage gateway. |
||
139 | * |
||
140 | * @return \eZ\Publish\Core\Persistence\Legacy\Bookmark\Gateway\DoctrineDatabase |
||
141 | */ |
||
142 | protected function getGateway(): DoctrineDatabase |
||
148 | } |
||
149 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.