File tree 2 files changed +10
-9
lines changed
modules/taxonomy/tests/src
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -89,15 +89,6 @@ protected function setUp(): void {
89
89
->save ();
90
90
}
91
91
92
- /**
93
- * The "parent" field must restrict references to the same vocabulary.
94
- */
95
- public function testParentHandlerSettings (): void {
96
- $ vocabulary_fields = \Drupal::service ('entity_field.manager ' )->getFieldDefinitions ('taxonomy_term ' , $ this ->vocabulary ->id ());
97
- $ parent_target_bundles = $ vocabulary_fields ['parent ' ]->getSetting ('handler_settings ' )['target_bundles ' ];
98
- $ this ->assertSame ([$ this ->vocabulary ->id () => $ this ->vocabulary ->id ()], $ parent_target_bundles );
99
- }
100
-
101
92
/**
102
93
* Tests terms in a single and multiple hierarchy.
103
94
*/
Original file line number Diff line number Diff line change @@ -196,4 +196,14 @@ public function testRevisionLogAccess(): void {
196
196
$ this ->assertFalse ($ entity ->get ('revision_log_message ' )->access ('view ' , $ viewer ));
197
197
}
198
198
199
+ /**
200
+ * The "parent" field must restrict references to the same vocabulary.
201
+ */
202
+ public function testParentHandlerSettings (): void {
203
+ $ vocabulary = $ this ->createVocabulary ();
204
+ $ vocabulary_fields = \Drupal::service ('entity_field.manager ' )->getFieldDefinitions ('taxonomy_term ' , $ vocabulary ->id ());
205
+ $ parent_target_bundles = $ vocabulary_fields ['parent ' ]->getSetting ('handler_settings ' )['target_bundles ' ];
206
+ $ this ->assertSame ([$ vocabulary ->id () => $ vocabulary ->id ()], $ parent_target_bundles );
207
+ }
208
+
199
209
}
You can’t perform that action at this time.
0 commit comments