Problem/Motivation

$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
 ------ ------------------------------------------------------------------- 
  Line   src/Form/ConfigSyncImportForm.php                                  
 ------ ------------------------------------------------------------------- 
  242    Call to deprecated method getName() of interface                   
         Drupal\Core\Extension\ModuleHandlerInterface:                      
         in drupal:10.3.0 and is removed from drupal:12.0.0.                
           Use \Drupal::service('extension.list.module')->getName($module)  
         instead.                                                           
 ------ ------------------------------------------------------------------- 
 ------ ------------------------------------------------------------------- 
  Line   src/Plugin/ConfigFilter/SyncFilterDeriver.php                      
 ------ ------------------------------------------------------------------- 
  95     Call to deprecated method getName() of interface                   
         Drupal\Core\Extension\ModuleHandlerInterface:                      
         in drupal:10.3.0 and is removed from drupal:12.0.0.                
           Use \Drupal::service('extension.list.module')->getName($module)  
         instead.                                                           
 ------ ------------------------------------------------------------------- 
 [ERROR] Found 2 errors  
PHPUnit 9.6.19 by Sebastian Bergmann and contributors.
.
E
E
E                                                                4 / 4 (100%)
Time: 00:40.851, Memory: 6.00 MB
There were 3 errors:
1) Drupal\Tests\config_sync\Kernel\UpdateModeTest::testUpdateModeMerge
Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
The install profile <em class="placeholder">testing</em> is not in the list of installed modules.
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:823
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:595
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:538
/builds/project/config_sync/tests/src/Kernel/UpdateModeTest.php:219
/builds/project/config_sync/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
2) Drupal\Tests\config_sync\Kernel\UpdateModeTest::testUpdateModePartialReset
Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
The install profile <em class="placeholder">testing</em> is not in the list of installed modules.
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:823
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:595
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:538
/builds/project/config_sync/tests/src/Kernel/UpdateModeTest.php:256
/builds/project/config_sync/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
3) Drupal\Tests\config_sync\Kernel\UpdateModeTest::testUpdateModeFullReset
Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
The install profile <em class="placeholder">testing</em> is not in the list of installed modules.
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:823
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:595
/builds/project/config_sync/web/core/lib/Drupal/Core/Config/ConfigImporter.php:538
/builds/project/config_sync/tests/src/Kernel/UpdateModeTest.php:297
/builds/project/config_sync/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
ERRORS!
Tests: 4, Assertions: 44, Errors: 3.

Related 10.3 change records

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joegraduate created an issue. See original summary.

bharath-kondeti made their first commit to this issue’s fork.

bharath-kondeti’s picture

Status: Active » Needs review
joegraduate’s picture

Title: New Drupal 10.3 deprecations » New Drupal 10.3 deprecations and test failures
Issue summary: View changes
joegraduate’s picture

Assigned: joegraduate » Unassigned
joegraduate’s picture

Issue summary: View changes
joegraduate’s picture

Issue summary: View changes

deepakkm made their first commit to this issue’s fork.

trackleft2’s picture

Status: Needs review » Reviewed & tested by the community

MR 17 looks good to me, it passes all the tests and makes the recommended changes

  • joegraduate committed 978ba68a on 3.0.x
    Issue #3456910 by joegraduate, bharath-kondeti, deepakkm, trackleft2:...
joegraduate’s picture

Status: Reviewed & tested by the community » Fixed

Merged. Thanks all.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.