I created this issue for the consolidated deprecated code report for Drupal 9 compatibility/readiness.

The Upgrade Status Report:

Google Analytics Counter
Scanned on Fri, 06/05/2020 - 05:02.

6 errors found. 9 warnings found. Avoid some manual work by using drupal-rector
for fixing issues automatically or Upgrade Rector to generate patches.

web/modules/contrib/google_analytics_counter/src/GoogleAnalyticsCounterAppManage
r.php:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix now │ 123  │ Parameter $alias_manager of method                           │
│         │      │ Drupal\google_analytics_counter\GoogleAnalyticsCounterAppMan │
│         │      │ ager::__construct() has typehint with deprecated interface   │
│         │      │ Drupal\Core\Path\AliasManagerInterface. Deprecated in        │
│         │      │ drupal:8.8.0 and is removed from drupal:9.0.0. Use           │
│         │      │ Drupal\path_alias\AliasManagerInterface.                     │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/src/GoogleAnalyticsCounterCustomFie
ldGenerator.php:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 152  │ Call to deprecated function entity_get_form_display().       │
│ rector   │      │ Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. │
│          │      │ Use EntityDisplayRepositoryInterface::getFormDisplay()       │
│          │      │ instead.                                                     │
│          │      │                                                              │
│ Fix with │ 162  │ Call to deprecated function entity_get_display(). Deprecated │
│ rector   │      │ in drupal:8.8.0 and is removed from drupal:9.0.0. Use        │
│          │      │ EntityDisplayRepositoryInterface::getViewDisplay() instead.  │
│          │      │                                                              │
│ Fix with │ 171  │ Call to deprecated method entityManager() of class Drupal.   │
│ rector   │      │ Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. │
│          │      │ Use Drupal::entityTypeManager() instead in most cases. If    │
│          │      │ the needed method is not on                                  │
│          │      │ \Drupal\Core\Entity\EntityTypeManagerInterface, see the      │
│          │      │ deprecated \Drupal\Core\Entity\EntityManager to find the     │
│          │      │ correct interface or service.                                │
│          │      │                                                              │
│ Fix with │ 173  │ Call to deprecated function entity_get_display(). Deprecated │
│ rector   │      │ in drupal:8.8.0 and is removed from drupal:9.0.0. Use        │
│          │      │ EntityDisplayRepositoryInterface::getViewDisplay() instead.  │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/src/Plugin/Filter/GoogleAnalyticsCo
unterFilter.php:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix now │ 72   │ Parameter $alias_manager of method                           │
│         │      │ Drupal\google_analytics_counter\Plugin\Filter\GoogleAnalytic │
│         │      │ sCounterFilter::__construct() has typehint with deprecated   │
│         │      │ interface Drupal\Core\Path\AliasManagerInterface. Deprecated │
│         │      │ in drupal:8.8.0 and is removed from drupal:9.0.0. Use        │
│         │      │ Drupal\path_alias\AliasManagerInterface.                     │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalytic
sCounterAuthSettingsTest.php:
┌──────────┬──────┬─────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                           │
├──────────┼──────┼─────────────────────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found and could not be │
│ manually │      │ autoloaded.                                                 │
│          │      │                                                             │
│ Check    │ 12   │ Class PHPUnit\Framework\TestCase not found and could not be │
│ manually │      │ autoloaded.                                                 │
│          │      │                                                             │
└──────────┴──────┴─────────────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalytic
sCounterBlockTest.php:
┌──────────┬──────┬─────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                           │
├──────────┼──────┼─────────────────────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found and could not be │
│ manually │      │ autoloaded.                                                 │
│          │      │                                                             │
│ Check    │ 17   │ Class PHPUnit\Framework\TestCase not found and could not be │
│ manually │      │ autoloaded.                                                 │
│          │      │                                                             │
└──────────┴──────┴─────────────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalytic
sCounterSettingsTest.php:
┌──────────┬──────┬─────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                           │
├──────────┼──────┼─────────────────────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found and could not be │
│ manually │      │ autoloaded.                                                 │
│          │      │                                                             │
│ Check    │ 12   │ Class PHPUnit\Framework\TestCase not found and could not be │
│ manually │      │ autoloaded.                                                 │
│          │      │                                                             │
└──────────┴──────┴─────────────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/tests/src/Kernel/GoogleAnalyticsCou
nterQueueTest.php:
┌──────────┬──────┬─────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                           │
├──────────┼──────┼─────────────────────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found and could not be │
│ manually │      │ autoloaded.                                                 │
│          │      │                                                             │
│ Check    │ 12   │ Class PHPUnit\Framework\TestCase not found and could not be │
│ manually │      │ autoloaded.                                                 │
│          │      │                                                             │
└──────────┴──────┴─────────────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/google_analytics_counter.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Add <code>core_version_requirement: ^8 || ^9

to │
│ manually │ │ modules/contrib/google_analytics_counter/google_analytics_co │
│ │ │ unter.info.yml to designate that the module is compatible │
│ │ │ with Drupal 9. See https://drupal.org/node/3070687. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

Drupal-check utility tool report:

 26/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ -----------------------------------------------------------------------
  Line   src/GoogleAnalyticsCounterAppManager.php
 ------ -----------------------------------------------------------------------
  123    Parameter $alias_manager of method
         Drupal\google_analytics_counter\GoogleAnalyticsCounterAppManager::__c
         onstruct() has typehint with deprecated interface
         Drupal\Core\Path\AliasManagerInterface:
         in drupal:8.8.0 and is removed from drupal:9.0.0.
         Use \Drupal\path_alias\AliasManagerInterface.
 ------ -----------------------------------------------------------------------

 ------ -----------------------------------------------------------------------
  Line   src/GoogleAnalyticsCounterCustomFieldGenerator.php
 ------ -----------------------------------------------------------------------
  152    Call to deprecated function entity_get_form_display():
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use
         EntityDisplayRepositoryInterface::getFormDisplay() instead.
  162    Call to deprecated function entity_get_display():
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use
         EntityDisplayRepositoryInterface::getViewDisplay() instead.
  171    Call to deprecated method entityManager() of class Drupal:
         in drupal:8.0.0 and is removed from drupal:9.0.0.
         Use \Drupal::entityTypeManager() instead in most cases. If the needed
         method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see
         the
         deprecated \Drupal\Core\Entity\EntityManager to find the
         correct interface or service.
  173    Call to deprecated function entity_get_display():
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use
         EntityDisplayRepositoryInterface::getViewDisplay() instead.
 ------ -----------------------------------------------------------------------

 ------ -----------------------------------------------------------------------
  Line   src/Plugin/Filter/GoogleAnalyticsCounterFilter.php
 ------ -----------------------------------------------------------------------
  72     Parameter $alias_manager of method
         Drupal\google_analytics_counter\Plugin\Filter\GoogleAnalyticsCounterF
         ilter::__construct() has typehint with deprecated interface
         Drupal\Core\Path\AliasManagerInterface:
         in drupal:8.8.0 and is removed from drupal:9.0.0.
         Use \Drupal\path_alias\AliasManagerInterface.
 ------ -----------------------------------------------------------------------

 ------ -----------------------------------------------------------------
  Line   tests/src/Functional/GoogleAnalyticsCounterAuthSettingsTest.php
 ------ -----------------------------------------------------------------
         Class PHPUnit\Framework\TestCase not found and could not be
         autoloaded.
         💡 Learn more at https://phpstan.org/user-guide/autoloading
  12     Class PHPUnit\Framework\TestCase not found and could not be
         autoloaded.
         💡 Learn more at https://phpstan.org/user-guide/autoloading
 ------ -----------------------------------------------------------------

 ------ -------------------------------------------------------------
  Line   tests/src/Functional/GoogleAnalyticsCounterBlockTest.php
 ------ -------------------------------------------------------------
         Class PHPUnit\Framework\TestCase not found and could not be
         autoloaded.
         💡 Learn more at https://phpstan.org/user-guide/autoloading
  17     Class PHPUnit\Framework\TestCase not found and could not be
         autoloaded.
         💡 Learn more at https://phpstan.org/user-guide/autoloading
 ------ -------------------------------------------------------------

 ------ -------------------------------------------------------------
  Line   tests/src/Functional/GoogleAnalyticsCounterSettingsTest.php
 ------ -------------------------------------------------------------
         Class PHPUnit\Framework\TestCase not found and could not be
         autoloaded.
         💡 Learn more at https://phpstan.org/user-guide/autoloading
  12     Class PHPUnit\Framework\TestCase not found and could not be
         autoloaded.
         💡 Learn more at https://phpstan.org/user-guide/autoloading
 ------ -------------------------------------------------------------

 ------ -------------------------------------------------------------
  Line   tests/src/Kernel/GoogleAnalyticsCounterQueueTest.php
 ------ -------------------------------------------------------------
         Class PHPUnit\Framework\TestCase not found and could not be
         autoloaded.
         💡 Learn more at https://phpstan.org/user-guide/autoloading
  12     Class PHPUnit\Framework\TestCase not found and could not be
         autoloaded.
         💡 Learn more at https://phpstan.org/user-guide/autoloading
 ------ -------------------------------------------------------------

 [ERROR] Found 14 errors
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

drupal.ninja03 created an issue. See original summary.

siddhant.bhosale’s picture

Assigned: Unassigned » siddhant.bhosale
gnanagowthaman sankar’s picture

Assigned: siddhant.bhosale » gnanagowthaman sankar
Status: Active » Needs review
StatusFileSize
new4.17 KB

Hi @siddhant.bhosale,

Here by i attached the patch please review and let me know for any changes.

Thanks & Regards,
GnanagowthamanSankar

drupal.ninja03’s picture

Status: Needs review » Needs work

Tested the patch from #3, and ran the upgrade status scan again:

Google Analytics Counter
Scanned on Sat, 06/06/2020 - 04:06.

2 errors found. 8 warnings found.

web/modules/contrib/google_analytics_counter/src/GoogleAnalyticsCounterAppManage
r.php:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix now │ 123  │ Parameter $alias_manager of method                           │
│         │      │ Drupal\google_analytics_counter\GoogleAnalyticsCounterAppMan │
│         │      │ ager::__construct() has typehint with deprecated interface   │
│         │      │ Drupal\Core\Path\AliasManagerInterface. Deprecated in        │
│         │      │ drupal:8.8.0 and is removed from drupal:9.0.0. Use           │
│         │      │ Drupal\path_alias\AliasManagerInterface.                     │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/src/Plugin/Filter/GoogleAnalyticsCo
unterFilter.php:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix now │ 72   │ Parameter $alias_manager of method                           │
│         │      │ Drupal\google_analytics_counter\Plugin\Filter\GoogleAnalytic │
│         │      │ sCounterFilter::__construct() has typehint with deprecated   │
│         │      │ interface Drupal\Core\Path\AliasManagerInterface. Deprecated │
│         │      │ in drupal:8.8.0 and is removed from drupal:9.0.0. Use        │
│         │      │ Drupal\path_alias\AliasManagerInterface.                     │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘
drupal.ninja03’s picture

There are few warnings related to tests:

web/modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalytic
sCounterAuthSettingsTest.php:
┌──────────┬──────┬───────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                        MESSAGE                        │
├──────────┼──────┼───────────────────────────────────────────────────────┤
│ Check    │      │ Class Behat\Mink\WebAssert not found and could not be │
│ manually │      │ autoloaded.                                           │
│          │      │                                                       │
│ Check    │ 53   │ Class Behat\Mink\WebAssert not found and could not be │
│ manually │      │ autoloaded.                                           │
│          │      │                                                       │
└──────────┴──────┴───────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalytic
sCounterBlockTest.php:
┌──────────┬──────┬───────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                        MESSAGE                        │
├──────────┼──────┼───────────────────────────────────────────────────────┤
│ Check    │      │ Class Behat\Mink\WebAssert not found and could not be │
│ manually │      │ autoloaded.                                           │
│          │      │                                                       │
│ Check    │ 139  │ Class Behat\Mink\WebAssert not found and could not be │
│ manually │      │ autoloaded.                                           │
│          │      │                                                       │
└──────────┴──────┴───────────────────────────────────────────────────────┘

web/modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalytic
sCounterSettingsTest.php:
┌──────────┬──────┬───────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                        MESSAGE                        │
├──────────┼──────┼───────────────────────────────────────────────────────┤
│ Check    │      │ Class Behat\Mink\WebAssert not found and could not be │
│ manually │      │ autoloaded.                                           │
│          │      │                                                       │
│ Check    │ 64   │ Class Behat\Mink\WebAssert not found and could not be │
│ manually │      │ autoloaded.                                           │
│          │      │                                                       │
└──────────┴──────┴───────────────────────────────────────────────────────┘

Not sure how this should be handled.

gnanagowthaman sankar’s picture

Status: Needs work » Needs review
StatusFileSize
new2.57 KB
new6.96 KB

Hi @drupal.ninja03,

I attached the updated patch for your reference except the test case. Please review and let me know for the changes.

Thanks & regards,
GnanagowthamanSankar

gnanagowthaman sankar’s picture

StatusFileSize
new446 bytes
new6.95 KB

Hi @drupal.ninja03,

I had made some changes in the version can you please review the patch.

Thanks & regards,
GnanagowthamanSankar

drupal.ninja03’s picture

Patch from #7 works. and the upgrade status report show no more errors. However, when I tested with D9 site, I faced errors for deprecated services: path.alias_manager & entity.manager and had to make the corrections to path_alias.manager & entity_type.manager and created the patch for the same. Tested against 8.8.9 & 9.0.0.

gnanagowthaman sankar’s picture

Thanks @drupal.ninja03

szeidler’s picture

Status: Needs review » Reviewed & tested by the community

This looks pretty good. It would be awesome, if we could commit and tag a Drupal 9 compatible release.

vetal4ik’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new12.38 KB
new839 bytes

After applying the patch from #8 I got the next error:

The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\google_analytics_counter\GoogleAnalyticsCounterCustomFieldGenerator::__construct(), 4 passed in /var/www/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 257 and exactly 5 expected in Drupal\google_analytics_counter\GoogleAnalyticsCounterCustomFieldGenerator->__construct() (line 83 of modules/contrib/google_analytics_counter/src/GoogleAnalyticsCounterCustomFieldGenerator.php).
Drupal\google_analytics_counter\GoogleAnalyticsCounterCustomFieldGenerator->__construct(Object, Object, Object, Object) (Line: 257)
Drupal\Component\DependencyInjection\Container->createService(Array, 'google_analytics_counter.custom_field_generator') (Line: 171)
Drupal\Component\DependencyInjection\Container->get('google_analytics_counter.custom_field_generator') (Line: 67)
Drupal\google_analytics_counter\Form\GoogleAnalyticsCounterConfigureTypesForm::create(Object) (Line: 28)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('\Drupal\google_analytics_counter\Form\GoogleAnalyticsCounterConfigureTypesForm') (Line: 48)
Drupal\Core\Controller\HtmlFormController->getFormObject(Object, '\Drupal\google_analytics_counter\Form\GoogleAnalyticsCounterConfigureTypesForm') (Line: 58)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
...

The problem was in missed dependency for `google_analytics_counter.custom_field_generator` service.

rajab natshah’s picture

Assigned: gnanagowthaman sankar » Unassigned
Priority: Normal » Critical
rajab natshah’s picture

Title: Drupal 9 Compatibility report » Drupal 9 Compatibility for Google Analytics Counter module

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

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

isa.bel’s picture

For d9 upgrade the SafeMarkup::checkPlain is also showing as a compatibility error:
Error: Class 'Drupal\Component\Utility\SafeMarkup' not found in Drupal\google_analytics_counter\GoogleAnalyticsCounterAppManager->gacUpdatePathCounts()

I've added this change to the provided patch on this issue and I'm attaching it here.

rishi.kulshreshtha’s picture

Frist, the provided patch is broken when applied with 8.x-3.x-dev. Second, the patch is still missing a lot of D9 in compatibilities, hence providing an updated patch here with interdiff.

Processing /var/www/html/modules/contrib/google_analytics_counter.

================================================================================
Google Analytics Counter, --
Scanned on Mon, 10/25/2021 - 15:29

FILE: modules/contrib/google_analytics_counter/google_analytics_counter.install

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Fix now        240  Call to deprecated method getStorage() of class             
                    Drupal\Core\Entity\EntityManager. Deprecated in drupal:8.0.0
                    and is removed from drupal:9.0.0. Use                       
                    Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() 
                    instead.                                                    
--------------------------------------------------------------------------------
Check manually 240  The "entity.manager" service is deprecated. You should use  
                    the 'entity_type.manager' service instead.                  
--------------------------------------------------------------------------------

FILE:
modules/contrib/google_analytics_counter/src/Form/GoogleAnalyticsCounterAuthForm
.php

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Check manually 182  The "path.alias_manager" service is deprecated. Use         
                    "path_alias.manager" instead. See                           
                    https://drupal.org/node/3092086                             
--------------------------------------------------------------------------------

FILE:
modules/contrib/google_analytics_counter/src/Form/GoogleAnalyticsCounterConfigur
eTypesForm.php

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Fix now        155  Call to deprecated method getStorage() of class             
                    Drupal\Core\Entity\EntityManager. Deprecated in drupal:8.0.0
                    and is removed from drupal:9.0.0. Use                       
                    Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() 
                    instead.                                                    
--------------------------------------------------------------------------------
Check manually 155  The "entity.manager" service is deprecated. You should use  
                    the 'entity_type.manager' service instead.                  
--------------------------------------------------------------------------------

FILE:
modules/contrib/google_analytics_counter/src/GoogleAnalyticsCounterCustomFieldGe
nerator.php

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Check manually 159  Call to deprecated function entity_get_form_display().      
                    Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.
                    Use EntityDisplayRepositoryInterface::getFormDisplay()      
                    instead.                                                    
--------------------------------------------------------------------------------
Check manually 169  Call to deprecated function entity_get_display(). Deprecated
                    in drupal:8.8.0 and is removed from drupal:9.0.0. Use       
                    EntityDisplayRepositoryInterface::getViewDisplay() instead. 
--------------------------------------------------------------------------------
Check manually 178  Call to deprecated method entityManager() of class Drupal.  
                    Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
                    Use Drupal::entityTypeManager() instead in most cases. If   
                    the needed method is not on                                 
                    \Drupal\Core\Entity\EntityTypeManagerInterface, see the     
                    deprecated \Drupal\Core\Entity\EntityManager to find the    
                    correct interface or service.                               
--------------------------------------------------------------------------------
Check manually 180  Call to deprecated function entity_get_display(). Deprecated
                    in drupal:8.8.0 and is removed from drupal:9.0.0. Use       
                    EntityDisplayRepositoryInterface::getViewDisplay() instead. 
--------------------------------------------------------------------------------

FILE:
modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalyticsCou
nterAuthSettingsTest.php

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Check manually 12   Drupal\Tests\BrowserTestBase::$defaultTheme is required. See
                    https://www.drupal.org/node/3083055, which includes         
                    recommendations on which theme to use.                      
--------------------------------------------------------------------------------

FILE:
modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalyticsCou
nterBlockTest.php

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Check manually 17   Drupal\Tests\BrowserTestBase::$defaultTheme is required. See
                    https://www.drupal.org/node/3083055, which includes         
                    recommendations on which theme to use.                      
--------------------------------------------------------------------------------

FILE:
modules/contrib/google_analytics_counter/tests/src/Functional/GoogleAnalyticsCou
nterSettingsTest.php

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Check manually 12   Drupal\Tests\BrowserTestBase::$defaultTheme is required. See
                    https://www.drupal.org/node/3083055, which includes         
                    recommendations on which theme to use.                      
--------------------------------------------------------------------------------

FILE:
modules/contrib/google_analytics_counter/tests/src/Kernel/GoogleAnalyticsCounter
QueueTest.php

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Ignore         61   Call to deprecated constant REQUEST_TIME: Deprecated in     
                    drupal:8.3.0 and is removed from drupal:10.0.0. Use         
                    Drupal::time()->getRequestTime();                           
--------------------------------------------------------------------------------
rishi.kulshreshtha’s picture

Updating patch for missed code.

osopolar’s picture

StatusFileSize
new70.42 KB

Recreating interdiff

interdiff drupal_9_compatibility_report-3146542-18.patch drupal-9-compatibility-for-google-analytics-counter-module-3146542-19.patch > interdiff_18-19.txt

Shouldn't coding standard issues be better fixed in a separate issue? To me there are too many changes for reviewing.

szeidler’s picture

Shouldn't coding standard issues be better fixed in a separate issue? To me there are too many changes for reviewing

Yes

kakoum’s picture

My patch (compatibilty D9) for version 8.x-3.0-alpha19

kakoum’s picture

kakoum’s picture

kaszarobert’s picture

Assigned: Unassigned » kaszarobert
Status: Needs review » Needs work

Patch couldn't be applied to the latest dev. I'm doing a reroll and release a new D9 compatible alpha version.

ericdsd’s picture

Hi that's good to hear, i'll test it once you release it.

  • kaszarobert committed 9c4b985 on 8.x-3.x
    Issue #3146542 by Gnanagowthaman sankar, Rishi Kulshreshtha, szeidler,...
kaszarobert’s picture

Assigned: kaszarobert » Unassigned
Status: Needs work » Fixed

Committed. Thank you for everyone's hard work! I saw that the patches also trying to solve codestyle problems, too. I will commit those under #3281212: Fix code style issues as there's too many of those solve at once.

Now, at least the module works with Drupal 9. There are still a ton of bugs to solve but it's a small step towards a stable release.

  • kaszarobert committed 3c65a0c on 8.x-3.x
    Issue #3146542 Compatibility fixes for existing tests
    

Status: Fixed » Closed (fixed)

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