Révision 59ae487e
Ajouté par Assos Assos il y a presque 7 ans
drupal7/sites/all/modules/ldap/ldap_authorization/tests/BasicTests.test | ||
---|---|---|
437 | 437 |
'error_message' => '', |
438 | 438 |
); |
439 | 439 |
$this->consumerAdminConf['drupal_role']->save(); |
440 |
// debug('mappings'); debug($this->consumerAdminConf['drupal_role']->mappings); |
|
441 | 440 |
|
442 | 441 |
$edit = array( |
443 | 442 |
'name' => 'hpotter', |
... | ... | |
446 | 445 |
$this->drupalPost('user', $edit, t('Log in')); |
447 | 446 |
|
448 | 447 |
$new_role_created = in_array($new_role, array_values(user_roles())); |
449 |
// debug("roles"); debug(user_roles()); |
|
450 | 448 |
$roles_by_name = array_flip(user_roles()); |
451 | 449 |
$hpotter = user_load_by_name('hpotter'); |
452 | 450 |
$hpotter = user_load($hpotter->uid, TRUE); |
... | ... | |
548 | 546 |
if (count($mismatches)) { |
549 | 547 |
debug('mismatches between ldap server properties and form submitted values'); |
550 | 548 |
debug($mismatches); |
551 |
// debug($ldap_consumer); // throw recursion |
|
552 | 549 |
debug($consumer_form_data); |
553 | 550 |
} |
554 | 551 |
$this->assertTrue(count($mismatches) == 0, 'Add form for ldap consumer properties match values submitted.', $this->ldapTestId . ' Add consumer conf'); |
... | ... | |
574 | 571 |
if (count($mismatches)) { |
575 | 572 |
debug('mismatches between ldap server properties and form submitted values'); |
576 | 573 |
debug($mismatches); |
577 |
// debug($ldap_consumer); // throw recursion |
|
578 | 574 |
debug($consumer_form_data); |
579 | 575 |
} |
580 | 576 |
$this->assertTrue(count($mismatches) == 0, 'Update form for ldap server properties match values submitted.', $this->ldapTestId . '.Update consumer conf'); |
Formats disponibles : Unified diff
Weekly update of contrib modules