Issue #2342237 by martin107: Fixed Cannot use the same variable in the inner and outer foreach loop ( $label ).

8.0.x
Nathaniel Catchpole 2014-09-26 11:50:17 +01:00
parent 517c3328ed
commit 8dd6081043
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class ContentTranslationWorkflowsTest extends ContentTranslationTestBase {
// Check that translation permissions governate the associated operations.
$ops = array('create' => t('Add'), 'update' => t('Edit'), 'delete' => t('Delete'));
$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"));
$this->drupalLogin($user);
$this->drupalGet($translations_path);