Skip to content
Snippets Groups Projects
Commit 081500b5 authored by gloas's avatar gloas
Browse files

cosmozend: ajout form auth

parent 8e693d07
Branches
Tags
No related merge requests found
<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>
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment