mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-20 19:09:33 +01:00
Fix tests
This commit is contained in:
parent
8670250a26
commit
edd2472faa
@ -157,19 +157,15 @@ class RssControllerTest extends WallabagCoreTestCase
|
|||||||
|
|
||||||
$client = $this->getClient();
|
$client = $this->getClient();
|
||||||
|
|
||||||
$client->request('GET', '/admin/SUPERTOKEN/archive.xml');
|
$client->request('GET', '/admin/SUPERTOKEN/unread.xml');
|
||||||
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
||||||
$this->validateDom($client->getResponse()->getContent(), 'archive');
|
$this->validateDom($client->getResponse()->getContent(), 'unread');
|
||||||
|
|
||||||
$client->request('GET', '/admin/SUPERTOKEN/archive.xml?page=2');
|
$client->request('GET', '/admin/SUPERTOKEN/unread.xml?page=2');
|
||||||
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
||||||
$this->validateDom($client->getResponse()->getContent(), 'archive');
|
$this->validateDom($client->getResponse()->getContent(), 'unread');
|
||||||
|
|
||||||
$client->request('GET', '/admin/SUPERTOKEN/archive.xml?page=3');
|
$client->request('GET', '/admin/SUPERTOKEN/unread.xml?page=3000');
|
||||||
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
|
||||||
$this->validateDom($client->getResponse()->getContent(), 'archive');
|
|
||||||
|
|
||||||
$client->request('GET', '/admin/SUPERTOKEN/archive.xml?page=3000');
|
|
||||||
$this->assertEquals(302, $client->getResponse()->getStatusCode());
|
$this->assertEquals(302, $client->getResponse()->getStatusCode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user