Commit d61a4a78 authored by swatichouhan012's avatar swatichouhan012 Committed by Berdir
Browse files

Issue #3041366 by amit.drupal, swatichouhan012, RoshniPatel.addweb: Remove unused variables

parent 2940daec
......@@ -139,7 +139,7 @@ class PatternEditForm extends EntityForm {
$default_bundles = [];
$default_languages = [];
foreach ($this->entity->getSelectionConditions() as $condition_id => $condition) {
foreach ($this->entity->getSelectionConditions() as $condition) {
if (in_array($condition->getPluginId(), ['entity_bundle:' . $entity_type->id(), 'node_type'])) {
$default_bundles = $condition->getConfiguration()['bundles'];
}
......
......@@ -181,7 +181,7 @@ class PathautoMassDeleteTest extends BrowserTestBase {
}
}
else {
foreach ($this->accounts as $id => $account) {
foreach ($this->accounts as $account) {
$account->save();
}
}
......
......@@ -59,7 +59,7 @@ class PathautoTaxonomyWebTest extends BrowserTestBase {
$this->drupalGet('admin/structure/taxonomy');
// Add vocabulary "tags".
$vocabulary = $this->addVocabulary(['name' => 'tags', 'vid' => 'tags']);
$this->addVocabulary(['name' => 'tags', 'vid' => 'tags']);
// Create term for testing.
$name = 'Testing: term name [';
......
......@@ -403,7 +403,7 @@ class PathautoKernelTest extends KernelTestBase {
*/
public function testTaxonomyPattern() {
// Create a vocabulary and test that it's pattern variable works.
$vocab = $this->addVocabulary(['vid' => 'name']);
$this->addVocabulary(['vid' => 'name']);
$this->createPattern('taxonomy_term', 'base');
$pattern = $this->createPattern('taxonomy_term', 'bundle', -1);
$this->addBundleCondition($pattern, 'taxonomy_term', 'name');
......
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