See #2066993-57: Use magic methods to sync container property to \Drupal::getContainer in functional tests: Apparently, it is a bad idea to use $this->container in Functional tests.
We have a few instances of that in our code base which we should therefore probably get rid off:
modules/search_api_db/search_api_db_defaults/tests/src/Functional/IntegrationTest.php
tests/src/Functional/CacheabilityTest.php
tests/src/Functional/SearchApiBrowserTestBase.php
tests/src/Functional/ViewsTest.php| Comment | File | Size | Author |
|---|---|---|---|
| #4 | search-api-3125444-4.patch | 2.02 KB | rajesh kairamkonda |
Comments
Comment #2
drunken monkeySince all we need to do (probably) is replace all those instances with
\Drupal::getContainer(), this is definitely Novice level stuff.Comment #3
rajesh kairamkonda commentedComment #4
rajesh kairamkonda commentedComment #5
rajesh kairamkonda commentedComment #6
drunken monkeyLooks great, thanks!
Committed.