Skip to content

Commit 0d7a40c

Browse files
committed
Fix Tests
1 parent 1c0b677 commit 0d7a40c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/TestCase/Controller/PanelsControllerTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ public function testViewNotExists()
101101
*/
102102
public function testLatestHistory()
103103
{
104-
$request = $this->makeRequest();
104+
$request = $this->getTableLocator()->get('DebugKit.Requests')->find('recent')->first();
105+
if (!$request) {
106+
$request = $this->makeRequest();
107+
}
105108
$panel = $this->makePanel($request, 'DebugKit.History', 'History');
106109

107110
$this->get('/debug-kit/panels/view/latest-history');

0 commit comments

Comments
 (0)