Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
routing system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Aug 2014 at 07:16 UTC
Updated:
29 Aug 2014 at 15:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jibranYups that's write. Thanks for the fix. Do we need phpunit for this?
Comment #2
dawehnerGood catch!
Comment #3
larowlanlooking for red/green
Comment #4
oriol_e9gThe test should fail :(
Comment #5
larowlanComment #6
jibranRTBC if green
Comment #8
dawehnerIf we write a test we should add a proper dedicated test for the trait (note there is a phpunit helper method to create a mock from a trait.
you can just use getMock()
Comment #9
undertext commentedComment #10
jibranThank you for updating the tests. Can you upload the test only patch?
Comment #11
dawehnercool!
Let's use @coversDefaultClass and @covers
you can use getMock('Drupal\Core\Routing\UrlGeneratorInterface'); directly.
Comment #12
undertext commentedNew patch and test-only patch
Comment #14
jibranYay!! thank you for the test only patch.
Comment #15
alexpottCommitted 8e6b32a and pushed to 8.0.x. Thanks!
Minor fixes on commit.
Comment #17
m1r1k commented