Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2014 at 22:57 UTC
Updated:
29 Jul 2014 at 23:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentedComment #2
damiankloip commentedThis is a problem with test discovery and PHPUnit. I am guess you could run the test fine in isolation, but running the whole suite would probably not run this test. Simpletest just uses PUPUnit's discovery mechanism to find the test classes anyway...
So, I think we just move what's in MTimeProtectedFileStorageTest into the abstract PhpStorageTestBase class, and make both MTimeProtectedFastFileStorageTest and MTimeProtectedFileStorageTest extend that instead of MTimeProtectedFastFileStorageTest extending MTimeProtectedFileStorageTest.
This should now get discovered and run just fine.
Comment #4
damiankloip commentedOops, sorry. We need to introduce another base class for the MTimeProtected* classes instead. This can't all live in PhpStorageTestBase as the simple file storage test uses this too.
Let's also introduce a MTimeProtectedFileStorageBase class.
Comment #5
pwolanin commentedIt would be clearer if you posted the patch using git diff --no-renames
Comment #6
damiankloip commentedReally?! Not really worth the effort IMO (This is a pretty simple patch) but OK. There you go.
Comment #7
pwolanin commented6: 2202611-6.patch queued for re-testing.
Comment #8
pwolanin commentedre-roll for conflict from #2140433: Port SA-CORE-2013-003 to Drupal 8, plus doxygen and other minor cleanup.
Comment #9
damiankloip commentedWhere's the interdiff?
Also, you ask for the patch with no renames. Then don't review it anyway...
Comment #10
pwolanin commented@damiankloip - I did review the #6 patch when I re-tested it, but then saw the conflict before I posted my comment.
The interdiff would just be fixing the @file doxygen, and removing the duplicated line:
that was in the new base class setup() method.
In terms of review.
I tested after re-rolling. scripts/run-tests.sh now finds both tests as expected.
Comment #11
damiankloip commentedOk, thanks for confirming. So now we just get someone else to rtbc and we're good to go.
Comment #12
dawehnerIt would be great to use the proper visibility here.
Comment #13
dawehnerComment #14
damiankloip commentedRight on!
Comment #15
dawehnerThank you!
Can someone please open an issue on the testbot + drupal to not execute phpunit tests via the UI/run-tests.sh anymore?
Yeah just wanted to force someone to work on that.
Comment #16
catchThat's already open #2189317: Get a PHPUnit job type running that is separate and independent from the Simpletest Job type, fix the d.o integration so that we can run the PHPUnit tests independently.
Committed/pushed this one to 8.x, thanks!