Update to latest auth-providers API

This commit is contained in:
Romain Neutron
2013-05-28 19:30:48 +02:00
parent 18bb5d2915
commit 5b33f0f5b9
11 changed files with 522 additions and 401 deletions

View File

@@ -1,14 +0,0 @@
<?php
namespace Alchemy\Tests\Phrasea\Form\Login;
use Alchemy\Phrasea\Form\Login\PhraseaAuthenticationWithMappingForm;;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class PhraseaAuthenticationWithMappingFormTest extends FormTestCase
{
protected function getForm()
{
return new PhraseaAuthenticationWithMappingForm();
}
}

View File

@@ -51,7 +51,7 @@ class PhraseaRegisterFormTest extends FormTestCase
$form = new PhraseaRegisterForm(self::$DI['app'], $available, $params, new Camelizer());
$this->assertCount(8, self::$DI['app']->form($form)->createView()->vars['form']->children);
$this->assertCount(9, self::$DI['app']->form($form)->createView()->vars['form']->children);
}
public function testFormDoesNotRegisterNonValidFields()
@@ -75,6 +75,6 @@ class PhraseaRegisterFormTest extends FormTestCase
$form = new PhraseaRegisterForm(self::$DI['app'], $available, $params, new Camelizer());
$this->assertCount(7, self::$DI['app']->form($form)->createView()->vars['form']->children);
$this->assertCount(8, self::$DI['app']->form($form)->createView()->vars['form']->children);
}
}