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.
This is an issue to make sure all the tests report a success. Due to the backport a few form ids and page urls changed, these are reflected in the patches too.
The patches here incorporate the patch in #1470420: Bug in install file as well.
Comment | File | Size | Author |
---|---|---|---|
#9 | click_second_delete-1471766-9.patch | 966 bytes | sdrycroft |
#6 | 1471766-6.patch | 5.46 KB | Nick_vh |
#5 | 1471766-apachesolr-fix_tests.patch | 5.53 KB | snufkin |
#3 | 1471766-apachesolr-fix_tests.patch | 5.54 KB | snufkin |
#2 | 1471766-apachesolr-fix_tests.patch | 4.9 KB | snufkin |
Comments
Comment #1
snufkin CreditAttribution: snufkin commentedAccess related tests are fixed. Fixed database query, changed path and form alter for the permission rebuild since that changed between 6 and 7.
Comment #2
snufkin CreditAttribution: snufkin commentedOne fail left, rest is, mostly just rearranging the dependencies and fixing the settings urls.
Comment #3
snufkin CreditAttribution: snufkin commentedFixing the removal of the search page fail by making the test hit the second delete link instead of the first one, which is the taxonomy/term/% search, coming with the default install.
Comment #4
Nick_vhLocally this gives me 583 passes, 1 fail, and 4 exceptions
Almost! Really well done :)
Also when autoload is enabled (not necessarily in the simpletest environment) it gives you more exceptions and errors. But I don't think you should take care of this problem in this phase.
Undefined variable: env_id Notice apachesolr_base.test 134 DrupalSolrOfflineEnvironmentWebTestCase->testEditSearchEnvironmentURLs()
Undefined variable: env_id Notice apachesolr_base.test 134 DrupalSolrOfflineEnvironmentWebTestCase->testEditSearchEnvironmentURLs()
Undefined variable: env_id Notice apachesolr_base.test 134 DrupalSolrOfflineEnvironmentWebTestCase->testEditSearchEnvironmentURLs()
Undefined variable: env_id Notice apachesolr_base.test 134 DrupalSolrOfflineEnvironmentWebTestCase->testEditSearchEnvironmentURLs()
Search Environment was succesfully deleted Other apachesolr_base.test 350 DrupalSolrOfflineSearchPagesWebTestCase->testNewAndRemoveSearchPage()
Thanks!
Comment #5
snufkin CreditAttribution: snufkin commentedI wonder why this didnt trigger an error on my end. I've updated the patch with making that call not use env_id (it does not seem to be initialized beforehand, so probably not needed).
Comment #6
Nick_vhImproved patch, fixes one more error
Comment #7
Nick_vhCommited to 6.x-3.x
Comment #8
Nick_vhComment #9
sdrycroft CreditAttribution: sdrycroft commentedThe DrupalSolrOfflineSearchPagesWebTestCase test no longer passes, as the clickLink(t('Delete')) call clicks the wrong Delete link. This is probably because of the addition of a disabled "taxonomy/term/%" search page. Changing the clickLink() function to click the second Delete link fixes this issue.