Closed (fixed)
Project:
Simple Block
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jul 2020 at 09:01 UTC
Updated:
11 Apr 2021 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ravimane23 commentedWith reference of WebTestBase is deprecated created a patch.
Comment #3
ravimane23 commentedComment #4
luca_loguercio commentedFor anyone wanting to apply on top of beta1
Comment #5
devdesagar commentedPatch#2 is working for me . Tested on Drupal 8 and Drupal 9
Comment #6
devdesagar commentedComment #7
neslee canil pintoPatch failed to apply
Comment #8
neslee canil pintoComment #10
neslee canil pintoComment #11
claudiu.cristeaIt may go in a follow-up?
This should use the class method:
$this->messenger().Let's add strict typing, including the
declare()statement, as this is a new class and there's no BC break danger.s/public/protected
Also, as
simple_block_testhas already a dependency onsimple_block, we cam omit the later.Comment #12
neslee canil pinto@claudiu.cristea ok i will do the changes as per #11
Comment #13
claudiu.cristea@Neslee Canil Pinto any news here?
Comment #14
neslee canil pintoComment #15
Pooja Ganjage commentedHi,
Creating a patch for this issue.
Please review the patch.
Let me know if any suggestions.
Thanks.
Comment #16
Pooja Ganjage commentedComment #17
claudiu.cristeaThe parent class is already exposing the
->messenger()method, so we don't need to inject again this service.Comment #18
Pooja Ganjage commentedHi,
Creating a patch for this issue as suggested in #16 patch.
Please review the patch.
Thanks.
Comment #19
Pooja Ganjage commentedComment #20
neslee canil pintoComment #21
claudiu.cristea@Neslee Canil Pinto, How can you RTBC without testing?
As I've mentioned in #17, We should use the method
$this->messenger()not the property. With the patch from #18, you'll get:Comment #22
claudiu.cristeaAlso, @Pooja Ganjage, please provide an interdiff for each change you make. Otherwise is difficut for reviewer to understand your changes. Alternatively, you can create a merge request, then each change can be reviewed as separate commit.
Comment #23
Pooja Ganjage commentedHi,
Attached updated patch with interdiff.
Please review once.
Thanks.
Comment #24
Pooja Ganjage commentedComment #25
claudiu.cristeaIt seems another change which hasn't been manually tested. Now, I really think we should provide a functional test to prove that everything works.
Comment #26
claudiu.cristeaFixed ^^^ issues.
Comment #28
claudiu.cristeaThanks all. Fixed!