$authors = $content->getPublishedBy();
$this->assertSame('2017-04-05 19:26:13', $content->getPublishedAt()->format('Y-m-d H:i:s'));
$this->assertSame('fr', $content->getLanguage());
- $this->assertSame('Raphaël Balenieri, correspondant à Pékin', $authors[0]);
- $this->assertSame('Frédéric Autran, correspondant à New York', $authors[1]);
+ $this->assertSame('Raphaël Balenieri', $authors[0]);
+ $this->assertSame('Frédéric Autran', $authors[1]);
}
public function testPostNewOkUrlExist()
],
'es-ES' => [
'https://www.20minutos.es/noticia/3360685/0/gobierno-sanchez-primero-historia-mas-mujeres-que-hombres/',
- 'es',
+ 'es_ES',
],
];
}