Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
taxonomy.module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2014 at 11:29 UTC
Updated:
8 Mar 2016 at 18:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rosinegrean commentedI'll work on this
Comment #2
rosinegrean commentedComment #3
rosinegrean commentedChanged entity_create from all tests.
Comment #5
rosinegrean commentedComment #7
skipyT commentedthis look ok for me, but I don't understand why do we want to use the static functions for create here if for load (#2322509) we are trying to inject the entity storage and to use the entity storage function instead.
I think we should try to use the injected entity storage where is available and instead of Vocabulary::create write something like: $vocabulary_storage->create($values);
Comment #8
rosinegrean commentedChanged static create.
Comment #9
skipyT commentedComment #11
lhangea commentedReroll for the patch from comment #8
Comment #12
lhangea commentedComment #13
yesct commentedneeds beta evaluation
Comment #14
vedpareek commentedRerolled
Comment #15
vedpareek commentedRerolled
Comment #17
Saphyel commentedComment #18
Saphyel commentedComment #19
lhangea commentedComment #20
yesct commentedsetting to needs review status so that the testbot runs on it.
Comment #23
yesct commentedrestoring tags accidentally removed in #14
@lhangea Thank you for fixing some of those fails.
Since the patch before yours applied to head, you can make an interdiff.
This will help people learn how you fixed the fails, and also make it more likely someone will review the patch.
For instructions on creating an interdiff, see https://drupal.org/documentation/git/interdiff
It also really helps to describe in words why you made the changes you did.
(for example I think you fixed some coding standards stuff along with test fail fixes)
Comment #24
lhangea commentedI uploaded a new patch which should be ok now and the interdiff (vs #15).
The changes can be seen pretty clear from the interdiff but basically there are small coding standard fixes, variable name changes and in some places I replaced the old static functions with methods of the injected objects.
Comment #25
lhangea commentedComment #26
yesct commentedadding those lines, essencially removed the newline under setup.
I was also super tempted to try
Why not type, so that ->create() is known to be a method?
Comment #27
yesct commentedon second thought, I think this is fine.
with patch applied,
ag entity_create core/modules/taxonomy
does not show any usages of entity_create in taxonomy tests, so this got them all.
Comment #28
alexpottWe changed direction in #7 but the IS has not been updated. I'm not convinced by Node::create() in a test is worse that getting the storage from the entity manager - but whatever as this hardly matters.
Comment #29
rosinegrean commentedComment #30
rosinegrean commentedComment #31
mile23This is a duplicate of the various taxonomy-related child issues here: #2490966: [Meta] Replace deprecated usage of entity_create with a direct call to the entity type class
Thanks, folks!