Issue #3203654: Start a 4.0.x branch to support Google Analytics 4 Property
GA4 Unit Tests
-
Test main object GoogleAnalyticsReportsApiFeed::service
-
Test main methods (isAuthenticated) of the object -
Test APIs from https://developers.google.com/analytics/devguides/reporting/data/v1 are available to call
README
-
Better wording
Tested results
./vendor/bin/phpunit -c web/core/phpunit.xml.dist web/modules/custom/google_analytics_reports
Testing web/modules/custom/google_analytics_reports
Drupal\Tests\google_analytics_reports\Unit\GoogleAnalyticsReportsApiFeed\GoogleAnalyticsReportsApiFeed
✔ Obj data set #0
✔ Obj data set #1
✔ Obj method data set #0
✔ Obj method data set #1
✔ Obj method data set #2
✔ Obj method data set #3
✔ Obj method data set #4
✔ Obj method data set #5
✔ Obj method data set #6
✔ Obj method data set #7
Time: 1.02 seconds, Memory: 14.00 MB
Edited by Rajab Natshah