aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php32
-rw-r--r--tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php (renamed from tests/Wallabag/CoreBundle/Controller/RssControllerTest.php)41
-rw-r--r--tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php2
-rw-r--r--tests/Wallabag/CoreBundle/ParamConverter/UsernameFeedTokenConverterTest.php (renamed from tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php)24
-rw-r--r--tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php2
5 files changed, 53 insertions, 48 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
index e4bf0998..2df317b8 100644
--- a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php
@@ -33,7 +33,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
33 $this->assertCount(1, $crawler->filter('button[id=config_save]')); 33 $this->assertCount(1, $crawler->filter('button[id=config_save]'));
34 $this->assertCount(1, $crawler->filter('button[id=change_passwd_save]')); 34 $this->assertCount(1, $crawler->filter('button[id=change_passwd_save]'));
35 $this->assertCount(1, $crawler->filter('button[id=update_user_save]')); 35 $this->assertCount(1, $crawler->filter('button[id=update_user_save]'));
36 $this->assertCount(1, $crawler->filter('button[id=rss_config_save]')); 36 $this->assertCount(1, $crawler->filter('button[id=feed_config_save]'));
37 } 37 }
38 38
39 public function testUpdate() 39 public function testUpdate()
@@ -297,7 +297,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
297 $this->assertContains('flashes.config.notice.user_updated', $alert[0]); 297 $this->assertContains('flashes.config.notice.user_updated', $alert[0]);
298 } 298 }
299 299
300 public function testRssUpdateResetToken() 300 public function testFeedUpdateResetToken()
301 { 301 {
302 $this->logInAs('admin'); 302 $this->logInAs('admin');
303 $client = $this->getClient(); 303 $client = $this->getClient();
@@ -313,7 +313,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
313 } 313 }
314 314
315 $config = $user->getConfig(); 315 $config = $user->getConfig();
316 $config->setRssToken(null); 316 $config->setFeedToken(null);
317 $em->persist($config); 317 $em->persist($config);
318 $em->flush(); 318 $em->flush();
319 319
@@ -322,7 +322,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
322 $this->assertSame(200, $client->getResponse()->getStatusCode()); 322 $this->assertSame(200, $client->getResponse()->getStatusCode());
323 323
324 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); 324 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
325 $this->assertContains('config.form_rss.no_token', $body[0]); 325 $this->assertContains('config.form_feed.no_token', $body[0]);
326 326
327 $client->request('GET', '/generate-token'); 327 $client->request('GET', '/generate-token');
328 $this->assertSame(302, $client->getResponse()->getStatusCode()); 328 $this->assertSame(302, $client->getResponse()->getStatusCode());
@@ -330,7 +330,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
330 $crawler = $client->followRedirect(); 330 $crawler = $client->followRedirect();
331 331
332 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); 332 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
333 $this->assertNotContains('config.form_rss.no_token', $body[0]); 333 $this->assertNotContains('config.form_feed.no_token', $body[0]);
334 } 334 }
335 335
336 public function testGenerateTokenAjax() 336 public function testGenerateTokenAjax()
@@ -351,7 +351,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
351 $this->assertArrayHasKey('token', $content); 351 $this->assertArrayHasKey('token', $content);
352 } 352 }
353 353
354 public function testRssUpdate() 354 public function testFeedUpdate()
355 { 355 {
356 $this->logInAs('admin'); 356 $this->logInAs('admin');
357 $client = $this->getClient(); 357 $client = $this->getClient();
@@ -360,10 +360,10 @@ class ConfigControllerTest extends WallabagCoreTestCase
360 360
361 $this->assertSame(200, $client->getResponse()->getStatusCode()); 361 $this->assertSame(200, $client->getResponse()->getStatusCode());
362 362
363 $form = $crawler->filter('button[id=rss_config_save]')->form(); 363 $form = $crawler->filter('button[id=feed_config_save]')->form();
364 364
365 $data = [ 365 $data = [
366 'rss_config[rss_limit]' => 12, 366 'feed_config[feed_limit]' => 12,
367 ]; 367 ];
368 368
369 $client->submit($form, $data); 369 $client->submit($form, $data);
@@ -372,31 +372,31 @@ class ConfigControllerTest extends WallabagCoreTestCase
372 372
373 $crawler = $client->followRedirect(); 373 $crawler = $client->followRedirect();
374 374
375 $this->assertContains('flashes.config.notice.rss_updated', $crawler->filter('body')->extract(['_text'])[0]); 375 $this->assertContains('flashes.config.notice.feed_updated', $crawler->filter('body')->extract(['_text'])[0]);
376 } 376 }
377 377
378 public function dataForRssFailed() 378 public function dataForFeedFailed()
379 { 379 {
380 return [ 380 return [
381 [ 381 [
382 [ 382 [
383 'rss_config[rss_limit]' => 0, 383 'feed_config[feed_limit]' => 0,
384 ], 384 ],
385 'This value should be 1 or more.', 385 'This value should be 1 or more.',
386 ], 386 ],
387 [ 387 [
388 [ 388 [
389 'rss_config[rss_limit]' => 1000000000000, 389 'feed_config[feed_limit]' => 1000000000000,
390 ], 390 ],
391 'validator.rss_limit_too_high', 391 'validator.feed_limit_too_high',
392 ], 392 ],
393 ]; 393 ];
394 } 394 }
395 395
396 /** 396 /**
397 * @dataProvider dataForRssFailed 397 * @dataProvider dataForFeedFailed
398 */ 398 */
399 public function testRssFailed($data, $expectedMessage) 399 public function testFeedFailed($data, $expectedMessage)
400 { 400 {
401 $this->logInAs('admin'); 401 $this->logInAs('admin');
402 $client = $this->getClient(); 402 $client = $this->getClient();
@@ -405,7 +405,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
405 405
406 $this->assertSame(200, $client->getResponse()->getStatusCode()); 406 $this->assertSame(200, $client->getResponse()->getStatusCode());
407 407
408 $form = $crawler->filter('button[id=rss_config_save]')->form(); 408 $form = $crawler->filter('button[id=feed_config_save]')->form();
409 409
410 $crawler = $client->submit($form, $data); 410 $crawler = $client->submit($form, $data);
411 411
diff --git a/tests/Wallabag/CoreBundle/Controller/RssControllerTest.php b/tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php
index 0e4a5afa..3bc7f951 100644
--- a/tests/Wallabag/CoreBundle/Controller/RssControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php
@@ -4,9 +4,9 @@ namespace Tests\Wallabag\CoreBundle\Controller;
4 4
5use Tests\Wallabag\CoreBundle\WallabagCoreTestCase; 5use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
6 6
7class RssControllerTest extends WallabagCoreTestCase 7class FeedControllerTest extends WallabagCoreTestCase
8{ 8{
9 public function validateDom($xml, $type, $urlPagination, $nb = null) 9 public function validateDom($xml, $type, $nb = null, $tagValue = null)
10 { 10 {
11 $doc = new \DOMDocument(); 11 $doc = new \DOMDocument();
12 $doc->loadXML($xml); 12 $doc->loadXML($xml);
@@ -23,7 +23,6 @@ class RssControllerTest extends WallabagCoreTestCase
23 $this->assertEquals(1, $xpath->query('/a:feed')->length); 23 $this->assertEquals(1, $xpath->query('/a:feed')->length);
24 24
25 $this->assertEquals(1, $xpath->query('/a:feed/a:title')->length); 25 $this->assertEquals(1, $xpath->query('/a:feed/a:title')->length);
26 $this->assertEquals('wallabag — '.$type.' feed', $xpath->query('/a:feed/a:title')->item(0)->nodeValue);
27 26
28 $this->assertEquals(1, $xpath->query('/a:feed/a:updated')->length); 27 $this->assertEquals(1, $xpath->query('/a:feed/a:updated')->length);
29 28
@@ -31,7 +30,13 @@ class RssControllerTest extends WallabagCoreTestCase
31 $this->assertEquals('wallabag', $xpath->query('/a:feed/a:generator')->item(0)->nodeValue); 30 $this->assertEquals('wallabag', $xpath->query('/a:feed/a:generator')->item(0)->nodeValue);
32 31
33 $this->assertEquals(1, $xpath->query('/a:feed/a:subtitle')->length); 32 $this->assertEquals(1, $xpath->query('/a:feed/a:subtitle')->length);
34 $this->assertEquals('RSS feed for '.$type.' entries', $xpath->query('/a:feed/a:subtitle')->item(0)->nodeValue); 33 if (null !== $tagValue && 0 === strpos($type, 'tag')) {
34 $this->assertEquals('wallabag — '.$type.' '.$tagValue.' feed', $xpath->query('/a:feed/a:title')->item(0)->nodeValue);
35 $this->assertEquals('Atom feed for entries tagged with ' . $tagValue, $xpath->query('/a:feed/a:subtitle')->item(0)->nodeValue);
36 } else {
37 $this->assertEquals('wallabag — '.$type.' feed', $xpath->query('/a:feed/a:title')->item(0)->nodeValue);
38 $this->assertEquals('Atom feed for ' . $type . ' entries', $xpath->query('/a:feed/a:subtitle')->item(0)->nodeValue);
39 }
35 40
36 $this->assertEquals(1, $xpath->query('/a:feed/a:link[@rel="self"]')->length); 41 $this->assertEquals(1, $xpath->query('/a:feed/a:link[@rel="self"]')->length);
37 $this->assertContains($type, $xpath->query('/a:feed/a:link[@rel="self"]')->item(0)->getAttribute('href')); 42 $this->assertContains($type, $xpath->query('/a:feed/a:link[@rel="self"]')->item(0)->getAttribute('href'));
@@ -84,8 +89,8 @@ class RssControllerTest extends WallabagCoreTestCase
84 ->findOneByUsername('admin'); 89 ->findOneByUsername('admin');
85 90
86 $config = $user->getConfig(); 91 $config = $user->getConfig();
87 $config->setRssToken('SUPERTOKEN'); 92 $config->setFeedToken('SUPERTOKEN');
88 $config->setRssLimit(2); 93 $config->setFeedLimit(2);
89 $em->persist($config); 94 $em->persist($config);
90 $em->flush(); 95 $em->flush();
91 96
@@ -93,7 +98,7 @@ class RssControllerTest extends WallabagCoreTestCase
93 98
94 $this->assertSame(200, $client->getResponse()->getStatusCode()); 99 $this->assertSame(200, $client->getResponse()->getStatusCode());
95 100
96 $this->validateDom($client->getResponse()->getContent(), 'unread', 'unread', 2); 101 $this->validateDom($client->getResponse()->getContent(), 'unread', 2);
97 } 102 }
98 103
99 public function testStarred() 104 public function testStarred()
@@ -105,8 +110,8 @@ class RssControllerTest extends WallabagCoreTestCase
105 ->findOneByUsername('admin'); 110 ->findOneByUsername('admin');
106 111
107 $config = $user->getConfig(); 112 $config = $user->getConfig();
108 $config->setRssToken('SUPERTOKEN'); 113 $config->setFeedToken('SUPERTOKEN');
109 $config->setRssLimit(1); 114 $config->setFeedLimit(1);
110 $em->persist($config); 115 $em->persist($config);
111 $em->flush(); 116 $em->flush();
112 117
@@ -115,7 +120,7 @@ class RssControllerTest extends WallabagCoreTestCase
115 120
116 $this->assertSame(200, $client->getResponse()->getStatusCode(), 1); 121 $this->assertSame(200, $client->getResponse()->getStatusCode(), 1);
117 122
118 $this->validateDom($client->getResponse()->getContent(), 'starred', 'starred'); 123 $this->validateDom($client->getResponse()->getContent(), 'starred');
119 } 124 }
120 125
121 public function testArchives() 126 public function testArchives()
@@ -127,8 +132,8 @@ class RssControllerTest extends WallabagCoreTestCase
127 ->findOneByUsername('admin'); 132 ->findOneByUsername('admin');
128 133
129 $config = $user->getConfig(); 134 $config = $user->getConfig();
130 $config->setRssToken('SUPERTOKEN'); 135 $config->setFeedToken('SUPERTOKEN');
131 $config->setRssLimit(null); 136 $config->setFeedLimit(null);
132 $em->persist($config); 137 $em->persist($config);
133 $em->flush(); 138 $em->flush();
134 139
@@ -137,7 +142,7 @@ class RssControllerTest extends WallabagCoreTestCase
137 142
138 $this->assertSame(200, $client->getResponse()->getStatusCode()); 143 $this->assertSame(200, $client->getResponse()->getStatusCode());
139 144
140 $this->validateDom($client->getResponse()->getContent(), 'archive', 'archive'); 145 $this->validateDom($client->getResponse()->getContent(), 'archive');
141 } 146 }
142 147
143 public function testPagination() 148 public function testPagination()
@@ -149,8 +154,8 @@ class RssControllerTest extends WallabagCoreTestCase
149 ->findOneByUsername('admin'); 154 ->findOneByUsername('admin');
150 155
151 $config = $user->getConfig(); 156 $config = $user->getConfig();
152 $config->setRssToken('SUPERTOKEN'); 157 $config->setFeedToken('SUPERTOKEN');
153 $config->setRssLimit(1); 158 $config->setFeedLimit(1);
154 $em->persist($config); 159 $em->persist($config);
155 $em->flush(); 160 $em->flush();
156 161
@@ -177,8 +182,8 @@ class RssControllerTest extends WallabagCoreTestCase
177 ->findOneByUsername('admin'); 182 ->findOneByUsername('admin');
178 183
179 $config = $user->getConfig(); 184 $config = $user->getConfig();
180 $config->setRssToken('SUPERTOKEN'); 185 $config->setFeedToken('SUPERTOKEN');
181 $config->setRssLimit(null); 186 $config->setFeedLimit(null);
182 $em->persist($config); 187 $em->persist($config);
183 $em->flush(); 188 $em->flush();
184 189
@@ -187,7 +192,7 @@ class RssControllerTest extends WallabagCoreTestCase
187 192
188 $this->assertSame(200, $client->getResponse()->getStatusCode()); 193 $this->assertSame(200, $client->getResponse()->getStatusCode());
189 194
190 $this->validateDom($client->getResponse()->getContent(), 'tag (foo bar)', 'tags/foo-bar'); 195 $this->validateDom($client->getResponse()->getContent(), 'tag', 2, 'foo-bar');
191 196
192 $client->request('GET', '/admin/SUPERTOKEN/tags/foo-bar.xml?page=3000'); 197 $client->request('GET', '/admin/SUPERTOKEN/tags/foo-bar.xml?page=3000');
193 $this->assertSame(302, $client->getResponse()->getStatusCode()); 198 $this->assertSame(302, $client->getResponse()->getStatusCode());
diff --git a/tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php b/tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php
index 2cf596d4..fe2fbdee 100644
--- a/tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php
@@ -13,7 +13,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
13 $client->followRedirects(); 13 $client->followRedirects();
14 14
15 $crawler = $client->request('GET', '/config'); 15 $crawler = $client->request('GET', '/config');
16 $this->assertContains('config.form_rss.description', $crawler->filter('body')->extract(['_text'])[0]); 16 $this->assertContains('config.form_feed.description', $crawler->filter('body')->extract(['_text'])[0]);
17 } 17 }
18 18
19 public function testLoginWith2Factor() 19 public function testLoginWith2Factor()
diff --git a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php b/tests/Wallabag/CoreBundle/ParamConverter/UsernameFeedTokenConverterTest.php
index 74c645ef..f48bf3cc 100644
--- a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php
+++ b/tests/Wallabag/CoreBundle/ParamConverter/UsernameFeedTokenConverterTest.php
@@ -4,15 +4,15 @@ namespace Tests\Wallabag\CoreBundle\Command;
4 4
5use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; 5use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
6use Symfony\Component\HttpFoundation\Request; 6use Symfony\Component\HttpFoundation\Request;
7use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; 7use Wallabag\CoreBundle\ParamConverter\UsernameFeedTokenConverter;
8use Wallabag\UserBundle\Entity\User; 8use Wallabag\UserBundle\Entity\User;
9 9
10class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase 10class UsernameFeedTokenConverterTest extends \PHPUnit_Framework_TestCase
11{ 11{
12 public function testSupportsWithNoRegistry() 12 public function testSupportsWithNoRegistry()
13 { 13 {
14 $params = new ParamConverter([]); 14 $params = new ParamConverter([]);
15 $converter = new UsernameRssTokenConverter(); 15 $converter = new UsernameFeedTokenConverter();
16 16
17 $this->assertFalse($converter->supports($params)); 17 $this->assertFalse($converter->supports($params));
18 } 18 }
@@ -28,7 +28,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
28 ->will($this->returnValue([])); 28 ->will($this->returnValue([]));
29 29
30 $params = new ParamConverter([]); 30 $params = new ParamConverter([]);
31 $converter = new UsernameRssTokenConverter($registry); 31 $converter = new UsernameFeedTokenConverter($registry);
32 32
33 $this->assertFalse($converter->supports($params)); 33 $this->assertFalse($converter->supports($params));
34 } 34 }
@@ -44,7 +44,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
44 ->will($this->returnValue(['default' => null])); 44 ->will($this->returnValue(['default' => null]));
45 45
46 $params = new ParamConverter([]); 46 $params = new ParamConverter([]);
47 $converter = new UsernameRssTokenConverter($registry); 47 $converter = new UsernameFeedTokenConverter($registry);
48 48
49 $this->assertFalse($converter->supports($params)); 49 $this->assertFalse($converter->supports($params));
50 } 50 }
@@ -82,7 +82,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
82 ->will($this->returnValue($em)); 82 ->will($this->returnValue($em));
83 83
84 $params = new ParamConverter(['class' => 'superclass']); 84 $params = new ParamConverter(['class' => 'superclass']);
85 $converter = new UsernameRssTokenConverter($registry); 85 $converter = new UsernameFeedTokenConverter($registry);
86 86
87 $this->assertFalse($converter->supports($params)); 87 $this->assertFalse($converter->supports($params));
88 } 88 }
@@ -120,7 +120,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
120 ->will($this->returnValue($em)); 120 ->will($this->returnValue($em));
121 121
122 $params = new ParamConverter(['class' => 'WallabagUserBundle:User']); 122 $params = new ParamConverter(['class' => 'WallabagUserBundle:User']);
123 $converter = new UsernameRssTokenConverter($registry); 123 $converter = new UsernameFeedTokenConverter($registry);
124 124
125 $this->assertTrue($converter->supports($params)); 125 $this->assertTrue($converter->supports($params));
126 } 126 }
@@ -128,7 +128,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
128 public function testApplyEmptyRequest() 128 public function testApplyEmptyRequest()
129 { 129 {
130 $params = new ParamConverter([]); 130 $params = new ParamConverter([]);
131 $converter = new UsernameRssTokenConverter(); 131 $converter = new UsernameFeedTokenConverter();
132 132
133 $res = $converter->apply(new Request(), $params); 133 $res = $converter->apply(new Request(), $params);
134 134
@@ -146,7 +146,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
146 ->getMock(); 146 ->getMock();
147 147
148 $repo->expects($this->once()) 148 $repo->expects($this->once())
149 ->method('findOneByUsernameAndRsstoken') 149 ->method('findOneByUsernameAndFeedToken')
150 ->with('test', 'test') 150 ->with('test', 'test')
151 ->will($this->returnValue(null)); 151 ->will($this->returnValue(null));
152 152
@@ -169,7 +169,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
169 ->will($this->returnValue($em)); 169 ->will($this->returnValue($em));
170 170
171 $params = new ParamConverter(['class' => 'WallabagUserBundle:User']); 171 $params = new ParamConverter(['class' => 'WallabagUserBundle:User']);
172 $converter = new UsernameRssTokenConverter($registry); 172 $converter = new UsernameFeedTokenConverter($registry);
173 $request = new Request([], [], ['username' => 'test', 'token' => 'test']); 173 $request = new Request([], [], ['username' => 'test', 'token' => 'test']);
174 174
175 $converter->apply($request, $params); 175 $converter->apply($request, $params);
@@ -184,7 +184,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
184 ->getMock(); 184 ->getMock();
185 185
186 $repo->expects($this->once()) 186 $repo->expects($this->once())
187 ->method('findOneByUsernameAndRsstoken') 187 ->method('findOneByUsernameAndFeedtoken')
188 ->with('test', 'test') 188 ->with('test', 'test')
189 ->will($this->returnValue($user)); 189 ->will($this->returnValue($user));
190 190
@@ -207,7 +207,7 @@ class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase
207 ->will($this->returnValue($em)); 207 ->will($this->returnValue($em));
208 208
209 $params = new ParamConverter(['class' => 'WallabagUserBundle:User', 'name' => 'user']); 209 $params = new ParamConverter(['class' => 'WallabagUserBundle:User', 'name' => 'user']);
210 $converter = new UsernameRssTokenConverter($registry); 210 $converter = new UsernameFeedTokenConverter($registry);
211 $request = new Request([], [], ['username' => 'test', 'token' => 'test']); 211 $request = new Request([], [], ['username' => 'test', 'token' => 'test']);
212 212
213 $converter->apply($request, $params); 213 $converter->apply($request, $params);
diff --git a/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php b/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php
index e5a145b8..6d8558e9 100644
--- a/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php
+++ b/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php
@@ -57,7 +57,7 @@ class CreateConfigListenerTest extends \PHPUnit_Framework_TestCase
57 $config = new Config($user); 57 $config = new Config($user);
58 $config->setTheme('baggy'); 58 $config->setTheme('baggy');
59 $config->setItemsPerPage(20); 59 $config->setItemsPerPage(20);
60 $config->setRssLimit(50); 60 $config->setFeedLimit(50);
61 $config->setLanguage('fr'); 61 $config->setLanguage('fr');
62 $config->setReadingSpeed(1); 62 $config->setReadingSpeed(1);
63 63