diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-01 14:51:54 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-01 14:58:48 +0200 |
commit | 40e219622a2c416ab36cb39b26a5e1354e4438cc (patch) | |
tree | 878fb4e50ecee04603f8a05dec04f9a4b8662d18 /tests/Wallabag | |
parent | 114c55c0a6eade2ba6c53fe25f61cc58cca91620 (diff) | |
download | wallabag-40e219622a2c416ab36cb39b26a5e1354e4438cc.tar.gz wallabag-40e219622a2c416ab36cb39b26a5e1354e4438cc.tar.zst wallabag-40e219622a2c416ab36cb39b26a5e1354e4438cc.zip |
Customize errors templates
All error goes to the same template which only display the error message and the status code.
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php b/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php index e29b58b5..2e6fccfb 100644 --- a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php +++ b/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php | |||
@@ -125,16 +125,14 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase | |||
125 | $this->assertTrue($converter->supports($params)); | 125 | $this->assertTrue($converter->supports($params)); |
126 | } | 126 | } |
127 | 127 | ||
128 | /** | ||
129 | * @expectedException InvalidArgumentException | ||
130 | * @expectedExceptionMessage Route attribute is missing | ||
131 | */ | ||
132 | public function testApplyEmptyRequest() | 128 | public function testApplyEmptyRequest() |
133 | { | 129 | { |
134 | $params = new ParamConverter([]); | 130 | $params = new ParamConverter([]); |
135 | $converter = new UsernameRssTokenConverter(); | 131 | $converter = new UsernameRssTokenConverter(); |
136 | 132 | ||
137 | $converter->apply(new Request(), $params); | 133 | $res = $converter->apply(new Request(), $params); |
134 | |||
135 | $this->assertFalse($res); | ||
138 | } | 136 | } |
139 | 137 | ||
140 | /** | 138 | /** |