Commit 8dd60810 authored by catch's avatar catch

Issue #2342237 by martin107: Fixed Cannot use the same variable in the inner...

Issue #2342237 by martin107: Fixed Cannot use the same variable in the inner and outer foreach loop ( $label ).
parent 517c3328
...@@ -86,7 +86,7 @@ function testWorkflows() { ...@@ -86,7 +86,7 @@ function testWorkflows() {
// Check that translation permissions governate the associated operations. // Check that translation permissions governate the associated operations.
$ops = array('create' => t('Add'), 'update' => t('Edit'), 'delete' => t('Delete')); $ops = array('create' => t('Add'), 'update' => t('Edit'), 'delete' => t('Delete'));
$translations_path = $this->entity->getSystemPath('drupal:content-translation-overview'); $translations_path = $this->entity->getSystemPath('drupal:content-translation-overview');
foreach ($ops as $current_op => $label) { foreach ($ops as $current_op => $item) {
$user = $this->drupalCreateUser(array($this->getTranslatePermission(), "$current_op content translations")); $user = $this->drupalCreateUser(array($this->getTranslatePermission(), "$current_op content translations"));
$this->drupalLogin($user); $this->drupalLogin($user);
$this->drupalGet($translations_path); $this->drupalGet($translations_path);
......
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