aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-01 16:35:48 +0200
committerGitHub <noreply@github.com>2016-10-01 16:35:48 +0200
commitc4bf7af96f52aaafd13049e74f27b368eec79bf8 (patch)
treec1126ee4ec55c82645b10ef65f4657aa80930657 /tests
parentdb5541e7a1e7131d62b4df23fa6eadd0c542b256 (diff)
parent40e219622a2c416ab36cb39b26a5e1354e4438cc (diff)
downloadwallabag-c4bf7af96f52aaafd13049e74f27b368eec79bf8.tar.gz
wallabag-c4bf7af96f52aaafd13049e74f27b368eec79bf8.tar.zst
wallabag-c4bf7af96f52aaafd13049e74f27b368eec79bf8.zip
Merge pull request #2322 from wallabag/v2-404
Customize errors templates
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php8
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 /**