Browse Source

Merge pull request #10448 from chinpei215/fix-view-test

Make sure that a LogicException is thrown
Mark Story 9 years ago
parent
commit
48c9569ec5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/View/ViewTest.php

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

@@ -1826,6 +1826,7 @@ TEXT;
         try {
             $this->View->layout = false;
             $this->View->render('extend_loop');
+            $this->fail('No exception');
         } catch (\LogicException $e) {
             ob_end_clean();
             $this->assertContains('cannot have views extend in a loop', $e->getMessage());