Révision b4adf10d
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/modules/menu/menu.test | ||
---|---|---|
513 | 513 |
} |
514 | 514 |
} |
515 | 515 |
|
516 |
/** |
|
517 |
* Test administrative users other than user 1 can access the menu parents AJAX callback. |
|
518 |
*/ |
|
519 |
public function testMenuParentsJsAccess() { |
|
520 |
$admin = $this->drupalCreateUser(array('administer menu')); |
|
521 |
$this->drupalLogin($admin); |
|
522 |
// Just check access to the callback overall, the POST data is irrelevant. |
|
523 |
$this->drupalGetAJAX('admin/structure/menu/parents'); |
|
524 |
$this->assertResponse(200); |
|
525 |
|
|
526 |
// Do standard user tests. |
|
527 |
// Login the user. |
|
528 |
$this->drupalLogin($this->std_user); |
|
529 |
$this->drupalGetAJAX('admin/structure/menu/parents'); |
|
530 |
$this->assertResponse(403); |
|
531 |
} |
|
532 |
|
|
516 | 533 |
/** |
517 | 534 |
* Get standard menu link. |
518 | 535 |
*/ |
Formats disponibles : Unified diff
Udpate to 7.33