1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

Customize errors templates

All error goes to the same template which only display the error message and the status code.
This commit is contained in:
Jeremy Benoist 2016-10-01 14:51:54 +02:00
parent 114c55c0a6
commit 40e219622a
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
7 changed files with 107 additions and 9 deletions

View file

@ -125,16 +125,14 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($converter->supports($params));
}
/**
* @expectedException InvalidArgumentException
* @expectedExceptionMessage Route attribute is missing
*/
public function testApplyEmptyRequest()
{
$params = new ParamConverter([]);
$converter = new UsernameRssTokenConverter();
$converter->apply(new Request(), $params);
$res = $converter->apply(new Request(), $params);
$this->assertFalse($res);
}
/**