diff --git a/cosmogramme/cosmozend/application/modules/cosmo/views/scripts/auth/index.phtml b/cosmogramme/cosmozend/application/modules/cosmo/views/scripts/auth/index.phtml index 5be23f001a7c2fd0922c93952ff92b3206e5d171..872223ca758cbe75141e8417138bba3f1da08dd8 100644 --- a/cosmogramme/cosmozend/application/modules/cosmo/views/scripts/auth/index.phtml +++ b/cosmogramme/cosmozend/application/modules/cosmo/views/scripts/auth/index.phtml @@ -1,3 +1,5 @@ +<form action="<?php echo $this->url(['module'=> 'cosmo', 'controller' => 'auth', 'action' => 'index']); ?>" name="auth_form"> <input name="login" /> <input name="password" /> <input type="submit" name="valider" /> +</form> diff --git a/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/AutControllerTest.php b/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/AutControllerTest.php index d11becfe65ef756d16986f2445b893ef4bfce976..9cbbe2cfe372ff61fcf99889bfbe94e62c4fa6c4 100644 --- a/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/AutControllerTest.php +++ b/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/AutControllerTest.php @@ -44,6 +44,12 @@ class AuthControllerTestCase extends Zend_Test_PHPUnit_ControllerTestCase { $this->assertXPath('//input[@type="submit"][@name="valider"]'); } + + /** @test **/ + public function authIndexShouldDisplayFormWithActionAuthIndex() { + $this->assertXPath('//form[contains(@action,"/cosmo/auth")][@name="auth_form"]'); + } + } ?> \ No newline at end of file