Add error pages, fix error handling and PHP conf

This commit is contained in:
Romain Neutron
2013-06-14 20:35:39 +02:00
parent 09c6361475
commit 42db38d055
140 changed files with 1962 additions and 1218 deletions

View File

@@ -3,6 +3,7 @@
namespace Alchemy\Tests\Phrasea\Form\Constraint;
use Alchemy\Phrasea\Form\Constraint\PasswordToken;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class PasswordTokenTest extends \PhraseanetPHPUnitAbstract
{
@@ -20,7 +21,7 @@ class PasswordTokenTest extends \PhraseanetPHPUnitAbstract
->expects($this->once())
->method('helloToken')
->with($token)
->will($this->throwException(new \Exception_NotFound('Token not found')));
->will($this->throwException(new NotFoundHttpException('Token not found')));
$constraint = new PasswordToken(self::$DI['app'], $random);
$this->assertFalse($constraint->isValid($token));