Guest User

Untitled

a guest
Dec 12th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2.  
  3. class IndexControllerTest extends Zend_Test_PHPUnit_ControllerTestCase
  4. {
  5. protected function setUp()
  6. {
  7. $this->bootstrap = new Zend_Application(
  8. APPLICATION_ENV,
  9. APPLICATION_PATH . '/configs/application.ini');
  10. parent::setUp();
  11. }
  12.  
  13. public function testIndexPageCanBeLoaded()
  14. {
  15. $this->dispatch('/');
  16. // assertions
  17. $this->assertNotController('error');
  18. $this->assertNotAction('error');
  19. $this->assertController('index');
  20. $this->assertAction('index');
  21. }
  22. }
Add Comment
Please, Sign In to add comment