Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Mar 2013 at 05:35 UTC
Updated:
29 Jul 2014 at 21:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
franskuipers commentedI feel its awesome we have phpunit tests in core!
the getInfo function is not relevant in phpunit tests anymore?
add one or more @group annotations here. I am thinking of somthing like:
Comment #2
clemens.tolboom@msonnabaum: Why is the unit test moved? Is there some documentation about this?
See also #1938068: Convert UnitTestBase to PHPUnit
Comment #3
ParisLiakos commentedTagging
Besides
Should be
Contains \Drupal\Tests...this seems ready
Comment #4
ParisLiakos commentedComment #6
ParisLiakos commented#4: drupal-graph_phpunit-1935908-4.patch queued for re-testing.
Comment #8
ParisLiakos commented/me facepalms
Comment #9
clemens.tolboom@ParisLiakos for future references: do you have some documentation to add in #1938068: Convert UnitTestBase to PHPUnit as most people will be puzzled how to create a patch for a git mv, replace t() by sprintf, etc ... btw: I should have documented that myself :-/
Shouldn't this be removed as mentioned by @franskuipers in #1?
And what about his
@group ComponentComment #10
ParisLiakos commentedNo, we still need it for Simpletest UI ;)
And there is no Component group, so far groups refer to a module, but definitely we should come up with a standard
Comment #11
clemens.tolboomThen the patch looks ok to me :)
Comment #12
alexpottThere is a clear case for using data providers in these tests
Comment #13
clemens.tolboomSo we need to follow along http://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writi... mentioned in #1938068: Convert UnitTestBase to PHPUnit
Comment #14
msonnabaum commentedI'm not sure I see how data providers could be used here.
Comment #15
jhedstromI also don't see a clear place to use dataproviders here.
Comment #16
alexpottYep... I saw arrays of stuff and foreach loops with assertions in... and assumed... if some rtbcs I'll commit.
Comment #17
jhedstromMoving back to RTBC as per #16.
Comment #18
alexpottCommitted c43d648 and pushed to 8.x. Thanks!
Comment #20
jhedstrom