AssertIntegrationTestCase.php 554 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Cake\Test\Fixture;
  3. use Cake\Network\Response;
  4. use Cake\TestSuite\IntegrationTestCase;
  5. /**
  6. * This class helps in indirectly testing the functionalities of IntegrationTestCase
  7. *
  8. */
  9. class AssertIntegrationTestCase extends IntegrationTestCase
  10. {
  11. /**
  12. * testBadAssertNoRedirect
  13. *
  14. * @return void
  15. */
  16. public function testBadAssertNoRedirect()
  17. {
  18. $this->_response = new Response();
  19. $this->_response->header('Location', 'http://localhost/tasks/index');
  20. $this->assertNoRedirect();
  21. }
  22. }