1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Jump to Symfony 3.4

Thanks to the BC compatibility, almost nothing have to be changed.
All changes are related to new bundle version of:
- SensioFrameworkExtraBundle
- DoctrineFixturesBundle
This commit is contained in:
Jeremy Benoist 2018-10-04 14:07:20 +02:00
parent 2b6380f5ac
commit 115de64e5b
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
34 changed files with 132 additions and 62 deletions

View file

@ -985,8 +985,13 @@ class EntryControllerTest extends WallabagCoreTestCase
$client->request('GET', '/share/' . $content->getId());
$this->assertSame(302, $client->getResponse()->getStatusCode());
// follow link with uid
$crawler = $client->followRedirect();
$shareUrl = $client->getResponse()->getTargetUrl();
// use a new client to have a fresh empty session (instead of a logged one from the previous client)
$client->restart();
$client->request('GET', $shareUrl);
$this->assertSame(200, $client->getResponse()->getStatusCode());
$this->assertContains('max-age=25200', $client->getResponse()->headers->get('cache-control'));
$this->assertContains('public', $client->getResponse()->headers->get('cache-control'));
@ -1002,9 +1007,6 @@ class EntryControllerTest extends WallabagCoreTestCase
$client->request('GET', '/share/' . $content->getUid());
$this->assertSame(404, $client->getResponse()->getStatusCode());
$client->request('GET', '/view/' . $content->getId());
$this->assertContains('no-cache', $client->getResponse()->headers->get('cache-control'));
// removing the share
$client->request('GET', '/share/delete/' . $content->getId());
$this->assertSame(302, $client->getResponse()->getStatusCode());