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:
parent
114c55c0a6
commit
40e219622a
7 changed files with 107 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue