Commit 5d7dec37 authored by Arthur Suzuki's avatar Arthur Suzuki
Browse files

dev #77981 : remove sigb info from admin ui

parent 5f78dacd
Pipeline #6712 passed with stage
in 36 minutes and 4 seconds
......@@ -57,19 +57,6 @@ class ZendAfi_Form_Admin_User extends ZendAfi_Form {
}
public function populate($datas) {
parent::populate($datas);
if ($subscription_type = $this->_user->getEmprunteur()->getSubscriptions())
$this->subscription_type->setValue(implode($subscription_type));
if ($blocked
= $this->_user->getEmprunteur()->isBlocked())
$this->blocked->setValue($blocked);
return $this;
}
protected function addBasicUserInfo() {
$this
->addElement('hidden',
......@@ -257,21 +244,10 @@ class ZendAfi_Form_Admin_User extends ZendAfi_Form {
'allowEmpty' => true,
'dateOnly' => true,
'toggleAllDay' => 'all_day']])
->addElement('text',
'subscription_type',
['label' => $this->_('Type d\'abonnement'),
'disabled' => 'disabled'])
->addElement('checkbox',
'blocked',
['label' => $this->_('Compte bloqué'),
'disabled' => 'disabled'])
->addDisplayGroup(['idabon',
'ordreabon',
'subscription_range_date',
'subscription_type',
'blocked'],
'subscription_range_date'],
'sigb',
['legend' => $this->_('Abonnement')]);
return $this;
......
......@@ -255,21 +255,6 @@ class UsersControllerEditMarcusTest extends UsersControllerWithMarcusTestCase {
}
/** @test */
public function subscriptionFieldShouldBeJazzman() {
$this->assertXPathContentContains('//label',"Type d'abonnement");
$this->assertXPath('//input[@name="subscription_type"][@disabled="disabled"][@value="Zicos"]');
}
/** @test */
public function blockedFieldShouldBeBlocked() {
$this->assertXPathContentContains('//label',"Compte bloqué");
$this->assertXPath('//input[@name="blocked"][@disabled="disabled"][@type="checkbox"][@checked="checked"]');
}
/** @test **/
public function roleLevelShouldBeSIGBSubscriber() {
$this->assertXpathContentContains('//select[@name="role_level"]//option[@value=2][@selected="selected"]','SIGB', $this->_response->getBody());
......
Markdown is supported
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