PHPUnit functional tests return error "Array to string conversion"

If I try to run PHPUnit functional tests, then it returns “Array to string conversion”. Any type of Functional test always returns the same error.

All the errors points to same line parent::setUp();  in the test file.

What is the issue?

[email protected] /var/www/html/mysite/web/core $ ../../vendor/bin/phpunit --group search --verbose
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.

Runtime:  PHP 7.2.2-1+ubuntu16.04.1+deb.sury.org+1
Configuration:  /var/www/html/mysite/web/core/phpunit.xml

..............EEEEEEEEEEEEE

Time: 1.73 minutes, Memory: 192.50MB

There were 13 errors:

1) DrupalTestssearchFunctionalSearchSimplifyTest::testSearchSimplifyUnicode
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21

2) DrupalTestssearchFunctionalSearchSimplifyTest::testSearchSimplifyPunctuation
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21

3) DrupalTestssearchFunctionalSearchCommentCountToggleTest::testSearchCommentCountToggle
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php:46

4) DrupalTestssearchFunctionalSearchPageOverrideTest::testSearchPageHook
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchPageOverrideTest.php:30

5) DrupalTestssearchFunctionalSearchNodePunctuationTest::testPhraseSearchPunctuation
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php:20

6) DrupalTestssearchFunctionalSearchExactTest::testExactQuery
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21

7) DrupalTestssearchFunctionalSearchKeywordsConditionsTest::testSearchKeywordsConditions
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php:33

8) DrupalTestssearchFunctionalSearchDateIntervalTest::testDateIntervalQueryAlter
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchDateIntervalTest.php:22

9) DrupalTestssearchFunctionalSearchMultilingualEntityTest::testMultilingualSearch
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php:32

10) DrupalTestssearchFunctionalSearchTokenizerTest::testTokenizer
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21

11) DrupalTestssearchFunctionalSearchTokenizerTest::testNoTokenizer
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21

12) DrupalTestssearchFunctionalSearchNodeDiacriticsTest::testPhraseSearchPunctuation
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php:20

13) DrupalTestssearchFunctionalSearchSetLocaleTest::testSearchWithNumericLocale
Array to string conversion

/var/www/html/mysite/web/core/includes/install.core.inc:2187
/var/www/html/mysite/web/core/includes/install.core.inc:1033
/var/www/html/mysite/web/core/includes/install.core.inc:671
/var/www/html/mysite/web/core/includes/install.core.inc:549
/var/www/html/mysite/web/core/includes/install.core.inc:117
/var/www/html/mysite/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:293
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:995
/var/www/html/mysite/web/core/tests/Drupal/Tests/BrowserTestBase.php:469
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchTestBase.php:21
/var/www/html/mysite/web/core/modules/search/tests/src/Functional/SearchSetLocaleTest.php:27

FAILURES!
Tests: 27, Assertions: 249, Errors: 13.
Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed