Skip to content
Snippets Groups Projects
Commit 4b085506 authored by llaffont's avatar llaffont
Browse files

Ajout tests non-régression sur les champs du formulaire d'enregistrement d'un nouveau compte

parent 0de6e902
Branches
Tags 6.17
No related merge requests found
......@@ -809,4 +809,45 @@ class AuthControllerLostPasswordTest extends AuthControllerNobodyLoggedTestCase
}
}
class AuthControllerNobodyLoggedAndRegistrationAllowedRegisterTest extends AuthControllerNobodyLoggedTestCase {
public function setUp() {
parent::setUp();
Class_AdminVar::getLoader()
->newInstanceWithId('INTERDIRE_ENREG_UTIL')
->setValeur(0);
$this->dispatch('auth/register', true);
}
/** @test */
public function inputMailShouldBePresent() {
$this->assertXPath('//input[@name="mail"]');
}
/** @test */
public function inputLoginShouldBePresent() {
$this->assertXPath('//input[@name="login"]');
}
/** @test */
public function inputMdpShouldBePresent() {
$this->assertXPath('//input[@name="mdp"]');
}
/** @test */
public function inputMdp2ShouldBePresent() {
$this->assertXPath('//input[@name="mdp2"]');
}
/** @test */
public function inputCaptchaShouldBePresent() {
$this->assertXPath('//input[@name="captcha"]');
}
}
?>
\ 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