Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
phpunit
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2015 at 22:40 UTC
Updated:
8 Sep 2015 at 22:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottThis should be testable somehow.
Comment #3
amateescu commentedCan't we test using the same method I used in #1713332: The SQLite database driver fails to drop simpletest tables, by overriding the
run()method (or the phpunit equivalent)?Comment #4
alexpott@amateescu everything is destroyed in tearDown so there is nowhere to override like in #1713332: The SQLite database driver fails to drop simpletest tables
Also we have some tests that run set up multiple times generating a new prefix and in the sqlite case files that are not cleaned up in /tmp and an under declared dependency on sqlite.
Comment #5
amateescu commentedHow about overriding tearDown() itself?
Comment #6
alexpottTried that... after tear down everything is gone.
Comment #7
dawehnerTried out something like this, but for some reason, which is not obvious for me, the \Drupal\Core\Database\Driver\sqlite\Schema::findTables in the tearDown method itself does not find the config table. The next method in \Drupal\KernelTests\KernelTestBaseTest::tearDown then though finds it.
Comment #9
dawehnerReupload.
Comment #10
wim leersLooking good!
… and more — all debug leftovers.
Comment #11
hussainwebI think I got them all.
Comment #12
dawehnerIt would be great if @amateescu could have a look at it.
Comment #13
amateescu commentedI tested the patch on SQLite and I can confirm that it works and the test tables are properly removed at the end of the test run.
Missed one :)
Comment #14
amateescu commentedNo reason to hold it up over that.
Comment #15
webchickI'll be honest. I have absolutely no idea what this does, but random fails are bad, mmmkay?
Committed and pushed to 8.0.x. ;) Thanks!