{
$list = [
'http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html',
- 'http://0.0.0.0/entry6',
+ 'http://0.0.0.0/entry1',
];
$this->client->request('POST', '/api/entries/lists?urls='.json_encode($list));
$this->assertEquals('http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', $content[0]['url']);
$this->assertInternalType('int', $content[1]['entry']);
- $this->assertEquals('http://0.0.0.0/entry6', $content[1]['url']);
+ $this->assertEquals('http://0.0.0.0/entry1', $content[1]['url']);
}
public function testDeleteEntriesListAction()
{
$list = [
- 'http://0.0.0.0/entry2',
+ 'http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html',
'http://0.0.0.0/entry3',
];
$content = json_decode($this->client->getResponse()->getContent(), true);
$this->assertTrue($content[0]['entry']);
- $this->assertEquals('http://0.0.0.0/entry2', $content[0]['url']);
+ $this->assertEquals('http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', $content[0]['url']);
$this->assertFalse($content[1]['entry']);
$this->assertEquals('http://0.0.0.0/entry3', $content[1]['url']);