summaryrefslogtreecommitdiffstats
path: root/core/modules/taxonomy/src/Tests/TermFieldTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/taxonomy/src/Tests/TermFieldTest.php')
-rw-r--r--core/modules/taxonomy/src/Tests/TermFieldTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/taxonomy/src/Tests/TermFieldTest.php b/core/modules/taxonomy/src/Tests/TermFieldTest.php
index 50d23e8..3c14410 100644
--- a/core/modules/taxonomy/src/Tests/TermFieldTest.php
+++ b/core/modules/taxonomy/src/Tests/TermFieldTest.php
@@ -166,7 +166,7 @@ class TermFieldTest extends TaxonomyTestBase {
$this->field_storage->save();
// Change the machine name.
$new_name = Unicode::strtolower($this->randomMachineName());
- $this->vocabulary->vid = $new_name;
+ $this->vocabulary->set('vid', $new_name);
$this->vocabulary->save();
// Check that the field is still attached to the vocabulary.