AssertIntegrationTestCase.php 559 B

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