Skip to content

Resolve #3203654 "Support for google"

GA4 Feedback

  • Drupal CI pass green
  • PHP Fatal error: Cannot use Drupal\google_analytics_reports_api\GoogleAnalyticsReportsApiFeed as GoogleAnalyticsReportsApiFeed because the name is already in use
  • The dispatcher console output.
  • [Document] The steps in the initial setup are not completed
  • ~~Error occurred during parsing: Fail to push the limit. ~~
    • Question: Can you check again? I would like to know how to reproduce this issue?

Tested DrupalCI

Drupal 9

Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyti  10 passes                                      

Test run duration: 0 sec

Attempting to connect to database server.
Database is active.
Reformatted junitxml test results saved

Drupal 8

PHPUnit 7.0.0 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.3.15
Configuration: /home/oliver/projects/drupalfactory/web/core/phpunit.xml.dist

Testing web/modules/custom/google_analytics_reports
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObj with data set #0 (false, array())' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObj with data set #0 (false, array())' ended
Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeed
 ✔ Obj data set #0 [30.27 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObj with data set #1 (true, array('/home/oliver/projects/drupalf...l.json', '222'))' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObj with data set #1 (true, array('/home/oliver/projects/drupalf...l.json', '222'))' ended
 ✔ Obj data set #1 [13.44 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #0 (false, 'invalidMethod')' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #0 (false, 'invalidMethod')' ended
 ✔ Obj method data set #0 [0.94 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #1 (true, 'runReport')' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #1 (true, 'runReport')' ended
 ✔ Obj method data set #1 [252.35 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #2 (true, 'batchRunReports')' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #2 (true, 'batchRunReports')' ended
 ✔ Obj method data set #2 [2.36 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #3 (true, 'runPivotReport')' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #3 (true, 'runPivotReport')' ended
 ✔ Obj method data set #3 [2.64 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #4 (true, 'batchRunPivotReports')' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #4 (true, 'batchRunPivotReports')' ended
 ✔ Obj method data set #4 [1.89 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #5 (true, 'getMetadata')' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #5 (true, 'getMetadata')' ended
 ✔ Obj method data set #5 [1.56 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #6 (true, 'runRealtimeReport')' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #6 (true, 'runRealtimeReport')' ended
 ✔ Obj method data set #6 [0.97 ms]
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #7 (true, 'isAuthenticated')' started
Test 'Drupal\Tests\google_analytics_reports_api\Unit\GoogleAnalyticsReportsApiFeedTest::testObjMethod with data set #7 (true, 'isAuthenticated')' ended
 ✔ Obj method data set #7 [0.33 ms]

Closes #3203654

Edited by Ky Huynh

Merge request reports