Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
rdf.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jun 2013 at 20:50 UTC
Updated:
29 Jul 2014 at 22:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
linclark commentedComment #2
linclark commentedThis should be refactored to make use of the FieldRdfaTestBase class.
Comment #3
linclark commentedMade the test depend on the base class.
Comment #4
scor commented#3: 2030929-03-text-formatter-test_includes2034977.patch queued for re-testing.
Comment #5
jesse.d commentedTest passed locally.
Manual review looked good.
Comment #6
scor commentedThis needs reroll to incorporate #2034977: Create a base class for formatter RDFa tests.
Comment #7
jesse.d commentedThis is linclark's 2030929-03-text-formatter-test-do-not-test.patch, renamed for clarity. It does not include the base class, which was was committed in #2034977
Comment #8
jesse.d commentedSetting to needs review
Comment #8.0
jesse.d commentedAdded parent META issue.
Comment #9
scor commentedshould be in the Field directory inside Tests.
same
"Tests..."
should be:
/**
* {@inheritdoc}
*/
Let's be consistent with taxonomy test which reads:
'Field formatter: taxonomy term reference'
Comment #10
chrisfromredfinPatch with feedback from 9 above.
Comment #11
chrisfromredfininterdiff provided
Comment #13
scor commented10: 2030929-rdf-text_formatter_test-10.patch queued for re-testing.
Comment #14
scor commentedThanks @cwells! This test is good to go.
Comment #15
webchickYay, tests!
One question. When there are separate testFoo methods, each one will re-bootstrap the environment. Do we actually need a clean rebuild between each test run? Or will one bootstrap suffice? If so, we might want to do all of those assertions under one testX() function to save a bit of testbot time.
This is just a question, if it's incorrect feel free to post back to RTBC. In case it needs a re-roll, there's a tiny indentation problem in the PHPDoc above public static $modules. Else I can fix it on commit.
Comment #16
scor commentedFieldRdfaTestBase which this test extends is actually a unit test (extends FieldUnitTestBase), and therefore it's ultra fast. There is no install going on here. Settings back to RTBC for re-evaluation.
Comment #17
webchickYeah, saw that, but it's actually a *Drupal*UnitTestCase which I thought did some (light) bootstrapping before each testX method. But if the performance gain isn't worth it, we can go with this.
Committed and pushed to 8.x. Thanks!
Comment #18
kay_v commentedCurrently working on same for number formatter. Are concerns raised in comments #15-17 something to address before implementing the pattern in this patch?
Comment #19
scor commentedNo, the number formatter should follow the same approach of using/extending FieldUnitTestBase.