Drupal\Tests\sharethis\Functional\Views\SharethisViewsPluginTest::setUp must be compatible with Drupal\Tests\views\Functional\ViewTestBase::setUp

Created on 6 June 2024, 7 months ago
Updated 25 June 2024, 6 months ago

Problem/Motivation

PHP Fatal error: Declaration of Drupal\Tests\sharethis\Functional\Views\SharethisViewsPluginTest::setUp($import_test_views = true): void must be compatible with Drupal\Tests\views\Functional\ViewTestBase::setUp($import_test_views = true, $modules = [...]): void in .../sharethis/tests/src/Functional/Views/SharethisViewsPluginTest.php on line 49

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States collinhaines

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @collinhaines
  • Status changed to RTBC 6 months ago
  • πŸ‡¬πŸ‡§United Kingdom the_g_bomb

    Confirming both the error and the solution.
    Running:

    ./vendor/bin/phpunit 
    PHP Fatal error:  Declaration of Drupal\Tests\sharethis\Functional\Views\SharethisViewsPluginTest::setUp($import_test_views = true): void must be compatible with Drupal\Tests\views\Functional\ViewTestBase::setUp($import_test_views = true, $modules = [...]): void in /var/www/html/web/modules/contrib/sharethis/tests/src/Functional/Views/SharethisViewsPluginTest.php on line 49
    
    Fatal error: Declaration of Drupal\Tests\sharethis\Functional\Views\SharethisViewsPluginTest::setUp($import_test_views = true): void must be compatible with Drupal\Tests\views\Functional\ViewTestBase::setUp($import_test_views = true, $modules = [...]): void in /var/www/html/web/modules/contrib/sharethis/tests/src/Functional/Views/SharethisViewsPluginTest.php on line 49
    Failed to run phpunit : exit status 255
    

    Applied the patch to the module and phpunit was able to run.

Production build 0.71.5 2024