Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Working on #1552396-140: Convert vocabularies into configuration
I need to pas a different bundle name to create a term but it's always related to $this->bundle.
The test should to be improved to be usable for entities with bundles.
Patch changes base class EntityTranslationUITest method createEntity() by adding 3rd argument as it used in CommentTranslationUITest::createEntity()
Comment | File | Size | Author |
---|---|---|---|
#13 | 1848904-core-et-test-bundle-13.patch | 4.81 KB | andypost |
#6 | drupal-1848904-5.patch | 4.63 KB | tim.plunkett |
#6 | interdiff.txt | 1.41 KB | tim.plunkett |
#4 | 1848904-core-et-test-bundle-4.patch | 4.5 KB | andypost |
#2 | 1848904-core-et-test-bundle-1.patch | 3.87 KB | andypost |
Comments
Comment #1
tim.plunkettThat's something that can be worked around, right? I agree it'd be nice to clean up though.
Comment #2
andypostHere's a fixed tests
Comment #3
tim.plunkettThis class now needs a
protected $vocabulary;
with docblock.Defaults to NULL.
This could just be
= $bundle_name ?: $this->bundle;
Comment #4
andypostHere's a re-roll, fixed #3
Comment #5
YesCT CreditAttribution: YesCT commentedhow about
Or something like that.
Otherwise, coding standards and docs wise this looks good. And the changes make sense.
Is #3
a followup but not directly needed to fix these tests?
I did not manually try the tests.
Comment #6
tim.plunkettMissed the @var part. YesCT mentioned that it might be helpful to explain what leaving $bundle_name NULL would do.
Comment #7
YesCT CreditAttribution: YesCT commentedComment #8
tim.plunkettThis is not a bug because something is broken, it's just blocking another major because it is inflexible.
Comment #9
tim.plunkettWhoops, missed the rename as well.
Comment #10
andypostYes, this normal
also
CommentTranslationUITest::createEntity($values, $langcode, $node_bundle = NULL)
already uses 3rd arbumentComment #11
andypostx-post
Comment #13
andypostGot it, term required bith vid and vocabulary_machine_name to be saved, so override method should be here
Comment #15
andypost#13: 1848904-core-et-test-bundle-13.patch queued for re-testing.
Comment #16
YesCT CreditAttribution: YesCT commentedI checked the code again. The changes were made and it's still looking very good.
The issue summary needs to be clarified to address tim and andy's conversation regarding the approach.
It's not required, but using the issue summary template may result in making it easier on a committer when they come to evaluate this RTBC.
http://drupal.org/node/1155816
Comment #17
webchickCommitted and pushed to 8.x. Thanks!
Comment #18.0
(not verified) CreditAttribution: commentedUpdated summary