Skip to content
Snippets Groups Projects
Commit 6180e978 authored by efalcy's avatar efalcy
Browse files

manager plugin add sito actions

parent 825281f4
Branches
Tags
5 merge requests!2080Sandbox detach zf from storm,!2061Master,!1989Dev#45275 3155 contractuel application nouvelle methode d edition par lot des articles aux collections,!1968full plugin mod for multiselection,!1959Dev#45275 3155 contractuel application nouvelle methode d edition par lot des articles aux collections
Pipeline #104 failed with stage
in 8 minutes and 41 seconds
......@@ -63,31 +63,21 @@ class ZendAfi_Controller_Plugin_Manager_Sitotheque {
private function _getLeafActions($model) {
return
[
[
'url' => $this->_getUrlForActionAndIdName('sitoview').'?&iframe=true&width=80%%&height=80%%',
['url' => '/admin/sito/sitoview/id/%s?&iframe=true&width=80%%&height=80%%',
'icon' => 'show',
'label' => 'Visualiser',
'anchorOptions' => [
'rel' => 'prettyPhoto'
]
],
'anchorOptions' => ['rel' => 'prettyPhoto']],
[
'url' => $this->_getUrlForActionAndIdName('edit'),
['url' => '/admin/sito/edit/id/%s',
'icon' => 'edit',
'label' => 'Modifier',
],
[
'url' => $this->_getUrlForActionAndIdName('delete'),
['url' => '/admin/sito/delete/id/%s',
'icon' => 'delete',
'label' => 'Supprimer',
'anchorOptions' => [
'onclick' => "return confirm('Etes-vous sûr de vouloir supprimer ce site ?')"
],
]
'anchorOptions' => ['onclick' => "return confirm('Etes-vous sûr de vouloir supprimer ce site ?')"]]
];
}
}
?>
\ No newline at end of file
......@@ -179,4 +179,40 @@ class ManagerSitothequeTest extends Admin_AbstractControllerTestCase {
public function editFreeSoftwareShouldBePresent() {
$this->assertXPath('//a[contains(@href,"/admin/sito/catedit/id/21")]');
}
/** @test */
public function deleteSoftwareShouldBePresent() {
$this->assertXPath('//a[contains(@href,"/admin/sito/catdel/id/75")]');
}
/** @test */
public function addSubCategoryToFreeSoftwareShouldBePresent() {
$this->assertXPath('//a[contains(@href,"/admin/sito/catadd/id/21")]');
}
/** @test */
public function addSitothequeToFreeSoftwareShouldBePresent() {
$this->assertXPath('//a[contains(@href,"/admin/sito/add/id_cat/21")]');
}
/** @test */
public function previewFramapadShouldBePresent() {
$this->assertXPath('//a[contains(@href,"/admin/sito/sitoview/id/98")]');
}
/** @test */
public function editFramapadShouldBePresent() {
$this->assertXPath('//a[contains(@href,"/admin/sito/edit/id/98")]');
}
/** @test */
public function deleteFramapadShouldBePresent() {
$this->assertXPath('//a[contains(@href,"/admin/sito/delete/id/98")]');
}
}
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