apigee / apigee-m10n-drupal

Add monetization features to a Drupal developer portal
https://www.drupal.org/project/apigee_m10n
GNU General Public License v2.0
13 stars 13 forks source link

Apigee M10n Test & lint self deprecation notices #490

Open kedarkhaire opened 2 weeks ago

kedarkhaire commented 2 weeks ago

Description

  1. Using a translatable string as a category for field type is deprecated in drupal:1.2. and is removed from drupal:11... See https://www.drupal.org/node/3375748 1352x in AddCreditCustomAmountTest::testPriceRangeFieldValidation from Drupal\Tests\apigee_m1n_add_credit\FunctionalJavascript 1352x in AddCreditCustomAmountTest::testMinimumAmountValidationOnCheckout from Drupal\Tests\apigee_m1n_add_credit\FunctionalJavascript 114x in AddCreditCustomAmountTest::testUnitPriceValidation from Drupal\Tests\apigee_m1n_add_credit\FunctionalJavascript 114x in AddCreditCustomAmountTest::testPriceRangeFieldValidation from Drupal\Tests\apigee_m1n_add_credit\FunctionalJavascript\ApigeeX 114x in AddCreditCustomAmountTest::testUnitPriceValidation from Drupal\Tests\apigee_m1n_add_credit\FunctionalJavascript\ApigeeX

  2. The key provider 'storage_method' definition entry is deprecated in key:1.18. and is removed from key:2... Use the 'tags' definition entry instead. See https://www.drupal.org/node/336471 6x in AddCreditCustomAmountTest::testPriceRangeFieldValidation from Drupal\Tests\apigee_m1n_add_credit\FunctionalJavascript\ApigeeX 6x in AddCreditCustomAmountTest::testUnitPriceValidation from Drupal\Tests\apigee_m1n_add_credit\FunctionalJavascript\ApigeeX 6x in RatePlanStorageTest::testIsValidId from Drupal\Tests\apigee_m1n\Kernel\ApigeeX\Entity\Render 4x in AddCreditCustomAmountTest::testMinimumAmountValidationOnCheckout from Drupal\Tests\apigee_m1n_add_credit\FunctionalJavascript\ApigeeX 4x in RouteValidateMonetizationEnabledFunctionalTest::testRoutesWithMonetizationDisabled from Drupal\Tests\apigee_m1***n\Functional\ApigeeX

  3. Installing the table sequences with the method KernelTestBase::installSchema() is deprecated in drupal:1.2. and is removed from drupal:12... See https://www.drupal.org/node/3349345 3x in RatePlanStorageTest::testIsValidId from Drupal\Tests\apigee_m1n\Kernel\ApigeeX\Entity\Render 1x in AddCreditConfigStatusKernelTest::testStatusReport from Drupal\Tests\apigee_m1n_add_credit\Kernel\ApigeeX 1x in AccessKernelTest::testAll from Drupal\Tests\apigee_m1n\Kernel\ApigeeX\Access 1x in BuyApisControllerKernelTest::testMyRedirects from Drupal\Tests\apigee_m1n\Kernel\ApigeeX\Controller 1x in BuyApisControllerKernelTest::testControllerResponse from Drupal\Tests\apigee_m1***n\Kernel\ApigeeX\Controller

  4. Passing null to the $typedConfigManager parameter of ConfigFormBase::__construct() is deprecated in drupal:1.2. and must be an instance of \Drupal\Core\Config\TypedConfigManagerInterface in drupal:11... See https://www.drupal.org/node/34***414 3x in AddCreditConfigFormTest::testConfigFormUi from Drupal\Tests\apigee_m1n_add_credit\Functional\ApigeeX 3x in GeneralSettingsConfigFormTest::testConfigFormUi from Drupal\Tests\apigee_m1***n_add_credit\Functional\ApigeeX

Steps to Reproduce

Steps to reproduce the behavior:

  1. Deprecation Notices are seen in Test and Lint

Expected Behavior

No deprecations or error messages should be visible

Version Info

Drupal 10.2 ^ & PHP 8.1^