Skip to content
Permalink
Browse files

Asserting "hack" to avoid "Risky" test result.

(When the test was made, it was throwing an error, it isn't anymore :))
  • Loading branch information...
kimegede committed Aug 25, 2014
1 parent 188b888 commit a28717983d24c49689b52d5bcb2f2a5c0e12339c
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/TestCase/TestSuite/ControllerTestCaseTest.php
@@ -469,6 +469,7 @@ public function testNoControllerReuse() {
/**
* Test that multiple calls to redirect in the same test method don't cause issues.
* - Asserting true, to avoid test to be shown as "Risky".
*
* @return void
*/
@@ -478,6 +479,8 @@ public function testTestActionWithMultipleRedirect() {
$options = array('method' => 'get');
$this->Case->testAction('/tests_apps/redirect_to', $options);
$this->Case->testAction('/tests_apps/redirect_to', $options);
$this->assertTrue(true);
}
/**

0 comments on commit a287179

Please sign in to comment.
You can’t perform that action at this time.