Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jun 2018 at 07:43 UTC
Updated:
20 Jul 2018 at 11:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ApacheEx commentedHere is a patch.
Comment #4
ApacheEx commentedhmm, BTB or Kernel tests do not support assert message on success (at least it's not insert them into simpletest table as it is in
\Drupal\simpletest\TestBase::assert()).So, first column will be always empty. That's why 1 test fails.
https://www.dropbox.com/s/w9323ise2cvi450/Screenshot%202018-07-02%2010.0...
I would propose to change a bit assert for checking if test case is success.
Not sure if it's a good solution, any other ideas?
Comment #5
lendudeUsing the xpath to check for success makes sense to me.
This gives us the same coverage without using the webtest, nice!
Comment #6
alexpottThe problem here is that we're now not installing minimal and have lost one of the points of the test which is to ensure we can install other profile in tests located in other install profiles.
Comment #7
ApacheEx commentedGood catch @alexpott.
Also thanks @lendude for your review.
Here is updated patch.
Comment #8
lendudeDug into this test some more, and it turns out, this test no longer really tests that we can install a module outside the installed profile in the test, since there is a copy of the drupal_system_listing_compatible_test module in the system module. So if it can't find the version in the profile, it just installs the one in the system module.
The system version is used by
\Drupal\Tests\system\Kernel\Common\SystemListingTest::testDirectoryPrecedenceto check that modules placed in a profile override other versions of the same module. So we can't just remove the system version.But that seems out of scope here, since that has probably been untested since 2013 or so, we can fix that in a follow up: #2984135: SystemListingCompatibleTest isn't testing what it says anymore
For this conversion: feedback has been addressed, looks good.
\Drupal\simpletest\Tests\InstallationProfileModuleTestsTestconversion is handled in #2932909: Convert web tests to browser tests for Simpletest moduleComment #9
alexpottCommitted 6ae83e1 and pushed to 8.6.x. Thanks!
Thanks for opening the followup.