Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Discovered as part of #697760: Replace getInfo() in tests with native phpDoc + annotations (following PHPUnit)
run-test.sh
- boots a temporary testing kernel (
$allow_dumping = FALSE
) in order to not load code of a possibly installed site. - rebuilds that kernel (
updateModules()
) in order to add + load system.module + simpletest.module only.
That process involves lots of needless YAML processing + ExtensionDiscovery.
→ Introduce a TestKernel
that has System + Simpletest module hard-coded right from the start.
Before:
$ run-tests.sh --class Drupal\system\Tests\File\HtaccessUnitTest
BOOT TIME: 3.84 sec
Drupal test run
---------------
Tests to be run:
- Drupal\system\Tests\File\HtaccessUnitTest
Test run started:
Saturday, May 3, 2014 - 01:04
Test summary
------------
BOOT TIME: 3.82 sec
Drupal\system\Tests\File\HtaccessUnitTest 29 passes
Test run duration: 5 sec
After:
$ run-tests.sh --class Drupal\system\Tests\File\HtaccessUnitTest
BOOT TIME: 1.21 sec
Drupal test run
---------------
Tests to be run:
- Drupal\system\Tests\File\HtaccessUnitTest
Test run started:
Saturday, May 3, 2014 - 01:08
Test summary
------------
BOOT TIME: 1.19 sec
Drupal\system\Tests\File\HtaccessUnitTest 29 passes
Test run duration: 2 sec
Remaining Tasks
- (done) #2259839: Consider renaming InstallerServiceProvider to something more generic (novice) create a separate issue per @damiankloip in #9 2. [ create the new issue, use the issue summary template, make a comment back here ]
Comment | File | Size | Author |
---|---|---|---|
#12 | test.kernel.12.patch | 3.73 KB | sun |
#10 | interdiff.txt | 1.36 KB | sun |
#10 | test.kernel.10.patch | 3.73 KB | sun |
#2 | interdiff.txt | 806 bytes | sun |
#2 | test.kernel.2.patch | 3.59 KB | sun |
Comments
Comment #1
sunComment #2
sunRestored InstallerServiceProvider for --sqlite/--dburl support.
Comment #5
sun2: test.kernel.2.patch queued for re-testing.
Comment #6
sunTestbot fluke (out of disk space)
Comment #7
sunComment #8
sunComment #9
damiankloip CreditAttribution: damiankloip commentedThis makes a lot of sense, I like it :)
Parameters can just be passed to the parent instead. Booted will also be set to false there too.
In another issue, we should give this service provider a more accurate name.
Comment #10
sunCall parent constructor; added some docs.
Comment #12
sunMerged HEAD
Comment #13
sun12: test.kernel.12.patch queued for re-testing.
Comment #14
ParisLiakos CreditAttribution: ParisLiakos commentednumbers look great:)
Comment #15
YesCT CreditAttribution: YesCT commentedadding Novice task to create separate issue asked for in #9
Comment #16
damiankloip CreditAttribution: damiankloip commentedSo not sure why we are tagging this issue as novice :)
+1 on the patch, the changes from my last review look great.
Comment #17
YesCT CreditAttribution: YesCT commented@damiankloip The issue wasn't novice, the task to crate the follow-up was.
Comment #18
damiankloip CreditAttribution: damiankloip commentedYes, I get that. I don't understand why that makes this issue need the novice tag. Just create the follow up, tag it novice, and be done with it :)
Comment #19
sunCreated follow-up issue for the @todo that is being moved from one spot to another in this patch:
#2260007: Make Dupal\Core\Datetime\Date's dependency on the 'date_format' entity optional
Comment #20
webchickGreat catch!
Committed and pushed to 8.x. Thanks!