@@ -88,7 +88,6 @@ public function testGetAllKeysTableView(): void {
8888 apcu_store ('pu-test-table1 ' , 'value1 ' );
8989 apcu_store ('pu-test-table2 ' , 'value2 ' );
9090 $ _GET ['s ' ] = 'pu-test-table ' ;
91- $ _GET ['view ' ] = 'table ' ;
9291
9392 $ result = $ this ->dashboard ->getAllKeys ();
9493
@@ -113,6 +112,7 @@ public function testGetAllKeysTableView(): void {
113112 ],
114113 ];
115114
115+ $ result = $ this ->dashboard ->keysTableView ($ result );
116116 $ result = $ this ->normalizeInfoFields ($ result , ['bytes_size ' , 'number_hits ' , 'timediff_last_used ' , 'time_created ' ]);
117117
118118 $ this ->assertEquals ($ this ->sortKeys ($ expected ), $ this ->sortKeys ($ result ));
@@ -123,7 +123,6 @@ public function testGetAllKeysTreeView(): void {
123123 apcu_store ('pu-test-tree1:sub2 ' , 'value2 ' );
124124 apcu_store ('pu-test-tree2 ' , 'value3 ' );
125125 $ _GET ['s ' ] = 'pu-test-tree ' ;
126- $ _GET ['view ' ] = 'tree ' ;
127126
128127 $ result = $ this ->dashboard ->getAllKeys ();
129128
@@ -168,6 +167,7 @@ public function testGetAllKeysTreeView(): void {
168167 ],
169168 ];
170169
170+ $ result = $ this ->dashboard ->keysTreeView ($ result );
171171 $ result = $ this ->normalizeInfoFields ($ result , ['bytes_size ' , 'number_hits ' , 'timediff_last_used ' , 'time_created ' ]);
172172
173173 $ this ->assertEquals ($ this ->sortTreeKeys ($ expected ), $ this ->sortTreeKeys ($ result ));
0 commit comments