Browse Source

Fix test.

Mark Story 3 years ago
parent
commit
9c9050bdf8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/TestCase/View/ViewTest.php

+ 2 - 1
tests/TestCase/View/ViewTest.php

@@ -1062,11 +1062,12 @@ class ViewTest extends TestCase
     {
         $error = new MyPDOException();
         $error->queryString = 'this is sql string';
+        $exceptions = [$error];
         $message = 'it works';
         $trace = $error->getTrace();
 
         $View = $this->PostsController->createView(TestView::class);
-        $View->set(compact('error', 'message', 'trace'));
+        $View->set(compact('error', 'exceptions', 'message', 'trace'));
         $View->setTemplatePath('Error');
 
         $result = $View->render('pdo_error', 'error');