-
- Downloads
Adds MappingsConstants class, moving constant in salesforce_mapping.module
to testable constructs. Adds getter methods getDrupalEntityType and getDrupalBundle to SalesforceMapping class to mirror getSalesforceObjectType Fixes referencing errors in PullBase for testability - Interfaces over classes - Constant classes over global constable in *.module files - Removal of t() use and using the implicit calls in the Drupal logger - Protected methods over private methods Adds PullBaseTest class (still needs work) Fixes use list in QueueHandlerTest class Add TestPullBase class to override necessary wrapper functions for PullBaseTest Fixes use list in TestQueueHandler
Showing
- modules/salesforce_mapping/src/Entity/SalesforceMapping.php 14 additions, 0 deletionsmodules/salesforce_mapping/src/Entity/SalesforceMapping.php
- modules/salesforce_mapping/src/MappingConstants.php 43 additions, 0 deletionsmodules/salesforce_mapping/src/MappingConstants.php
- modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php 21 additions, 18 deletionsmodules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php
- tests/src/salesforce_pull/PullBaseTest.php 147 additions, 0 deletionstests/src/salesforce_pull/PullBaseTest.php
- tests/src/salesforce_pull/QueueHandlerTest.php 1 addition, 3 deletionstests/src/salesforce_pull/QueueHandlerTest.php
- tests/src/salesforce_pull/TestPullBase.php 49 additions, 0 deletionstests/src/salesforce_pull/TestPullBase.php
- tests/src/salesforce_pull/TestQueueHandler.php 0 additions, 5 deletionstests/src/salesforce_pull/TestQueueHandler.php
Loading
Please register or sign in to comment