Needs work
Project:
Drupal core
Version:
main
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Aug 2015 at 22:22 UTC
Updated:
20 Apr 2023 at 04:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
webflo commentedComment #3
dawehner+1
Comment #4
joshi.rohit100Comment #5
joshi.rohit100Comment #7
webflo commentedShould be 'bundles' according to Drupal\node\Plugin\Condition\NodeType
Comment #8
joshi.rohit100I think, this should be $node_type = $this->drupalCreateContentType();
?
Comment #10
joshi.rohit100Comment #12
joshi.rohit100Comment #14
joshi.rohit100Again ):
Comment #16
tim.plunkettTry adding \Drupal::moduleHandler()->install(['node']); at the top of the test.
Comment #17
joshi.rohit100Comment #18
joshi.rohit100@tim :- Sorry I saw your feedback after uploading the patch. :(
So should I enable the node module globably or only for this test ?
Comment #19
joshi.rohit100Here is the 'moduleHandler' version with interdiff from #17.
Comment #20
tim.plunkettInstead of loading all of the blocks, we can use EQ:
I don't think installing the node module for *every* test is the right thing to do. We want it just for this one test.
Comment #22
webflo commentedComment #23
tim.plunkettWhy change this? Not important to fix, just seems unnecessary.
Two ;;
Comment #24
webflo commentedHmm. I don´t understand
ModuleHandlerInterfacehas no install method since #2324055: Split up the module manager into runtime information and extension information. got in.Comment #25
tim.plunkettYou're absolutely right, my apologies.
Comment #26
alexpottI think this problem is exposing a missing configuration dependency. Block has a dependency on the node type and it's not being added to the block configuration. This should then be fixed an
onDependencyRemovalimplementation for the block config entity.Comment #27
alexpottWe also should create a new issue to handle the missing language dependency and remove block_configurable_language_delete
Comment #28
alexpottAnd actually same for block_user_role_delete
Comment #29
alexpottBtw the massive advantage of doing this is when implemented it will tell you that a block will affected when one of these things is deleted.
Comment #30
alexpottComment #43
mstrelan commentedThe
node_typevisibility condition no longer exists, see Node type condition plugin deprecated by generic entity bundle condition.I've re-rolled the test part of the patch and uploaded to confirm this is still an issue.
Comment #44
mstrelan commentedUpdating the fix as well.
Comment #45
mstrelan commentedFix phpstan issues
Comment #46
mstrelan commented@alexpott are you suggesting in #26-30 that this patch takes a different direction? Or that we roll one or more follow up issues?