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

hotline #60846 add test

parent ba14e928
Branches
Tags
2 merge requests!2334Master,!2170hotline #60846 impossible d'editer les boites de la banniere en backoffice
Pipeline #1590 passed with stage
in 18 minutes and 7 seconds
...@@ -55,6 +55,33 @@ abstract class WidgetControllerDispatchWidgetConfigurationTestCase extends Widge ...@@ -55,6 +55,33 @@ abstract class WidgetControllerDispatchWidgetConfigurationTestCase extends Widge
class WidgetControllerDispatchBanniereConfigurationTestCase extends WidgetControllerWidgetConfigurationTestCase {
public function setUp() {
parent::setUp();
$this->_profil
->setParentId(null)
->addBoiteOfTypeInBanniere('NEWS')
->save();
$this->fixture('Class_Profil',
['id' => 6,
'parent_id' => $this->_profil->getId()])
->setParentProfil($this->_profil);
$this->dispatch('/admin/widget/edit-widget/id/'.current($this->_profil->getBoitesDivision(Class_Profil::DIV_BANNIERE))['preferences']['id_module'].'/id_profil/6', true);
}
/** @test **/
public function treeSelectShouldBeLoaded() {
$this->assertXPath('//script[contains(@src, "treeselect")]', $this->_response->getBody());
}
}
abstract class WidgetControllerPopupDispatchWidgetConfigurationTestCase extends WidgetControllerWidgetConfigurationTestCase { abstract class WidgetControllerPopupDispatchWidgetConfigurationTestCase extends WidgetControllerWidgetConfigurationTestCase {
protected $_html; protected $_html;
......
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