Skip to content
Snippets Groups Projects
Commit b819efbe authored by Laurent's avatar Laurent
Browse files

dev #24 add back button on import screen

parent 7f5351ab
2 merge requests!1677Hotline master,!1672Dev#24 storytime import des articles au format ical
<?php
echo $this->bouton('id=back',
'picto=back',
'texte=' . $this->_('Retour à la liste des agendas'),
'url=' . $this->url(['module' => 'admin',
'controller' => 'external-agendas',
'action' => 'index'], null, true));
echo $this->tag('p', $this->_('Nombre d\'évènements créés : %s', count($this->events)));
echo $this->tagList($this->events, ['titre'], '');
......@@ -465,6 +465,14 @@ class ExternalAgendasAdminImportTest extends ExternalAgendasAdminTestCase {
}
/** @test */
public function pageShouldContainsABackButton() {
$this->assertXPathContentContains('//div[@onclick="/admin/external-agendas/index"]//td',
'Retour à la liste des agendas',
$this->_response->getBody());
}
/** @test */
public function pageShouldContains10EventsCreated() {
$this->assertXPathContentContains('//p', 'Nombre d\'évènements créés : 10');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment