Problem/Motivation
In order to fix tests/src/Functional/ExamplesTest.php, related submodules' tests, deprecation notices, and coding standards should be fixed as well.
Testing modules examples/tests/
E.................................................... 53 / 53 (100%)There was 1 error:
1) Drupal\Tests\examples\Functional\ExamplesTest::testExampleToolbar
Behat\Mink\Exception\ExpectationException: Current response status code is 500, but 200 expected.vendor/behat/mink/src/WebAssert.php:768
vendor/behat/mink/src/WebAssert.php:130
examples/tests/src/Functional/ExamplesTest.php:34ERRORS!
Tests: 53, Assertions: 122, Errors: 1.
Proposed resolution
Bringing code from patches of #3103548: Tidy up tablesort_example and tour_example, #3103551: Tidy up testing_example and #3092947: Getting error when module is enabled., and fix submodules: node_type_example, cache_example's tests, deprecation notices, and coding standards, to make a big patch.
Submodules get involved:
- cache_example
- node_type_example
- tablesort_example
- testing_example
- tour_example
Comment | File | Size | Author |
---|---|---|---|
#4 | 3103552-4.patch | 3.62 KB | marvil07 |
#2 | examples-tests-3103552-2.patch | 14.6 KB | jungle |
Comments
Comment #2
jungleComment #3
marvil07 CreditAttribution: marvil07 as a volunteer commentedI found that this patch contain some fixes for the
Examples.Drupal\Tests\node_type_example\Functional\NodeTypeExampleTest.Drupal\Tests\node_type_example\Functional\NodeTypeExampleTest
failed test errors:Here I am attaching a modified (mainly using interfaces instead of base classes for checks) subset of the previous patch to fix the mentioned failures.
If testbot reports that the mentioned errors are not present anymore, I will add it.
Other hunks may still be useful from the previous patch.
Not providing and interdiff, since the new patch is just a subset.
Comment #4
marvil07 CreditAttribution: marvil07 as a volunteer commentedA p1 patch, I need to remember this.
Comment #7
marvil07 CreditAttribution: marvil07 as a volunteer commentedIndeed the mentioned errors do not appear anymore, I added the last patch.
Not sure if we want to continue here; probably not, maybe it is better to use children tickets of #3103586: [Meta] Bring back all tests GREEN.
Comment #8
jungleThanks, @marvil07 for committing. I would mark this as fixed.