Skip to content
Snippets Groups Projects
  1. Dec 15, 2023
  2. Nov 30, 2023
  3. Aug 03, 2023
  4. Mar 27, 2023
  5. Mar 12, 2021
  6. Dec 26, 2019
  7. Jul 02, 2019
  8. Feb 26, 2019
  9. Nov 30, 2018
  10. Sep 11, 2017
  11. Aug 09, 2017
  12. Jul 26, 2017
  13. May 08, 2017
  14. May 01, 2017
  15. Apr 25, 2017
  16. Apr 03, 2017
  17. Mar 29, 2017
  18. Mar 28, 2017
  19. Mar 10, 2017
  20. Mar 07, 2017
  21. Feb 07, 2017
  22. Feb 03, 2017
    • git's avatar
      End of week commit · d13572d8
      git authored
      Adds DeleteHandlerTest (not quite working yet)
      Removes injected Url object in RestClient. There is no @url service in core.services.yml and we’re
      not supposed to use UrlGenerator. Since Url is only used once in RestClient::getAuthCallbackUrl(),
      Url is used directly and that method can be easily mocked under test.
      Cleans up salesforce_pull_cron()
      Cleans up DeleteHandler’s use statements
      Adds Request object to DeleteHandler’s constructor to handle REQUEST_TIME server global
      Adds boolean returns to DeleteHandler methods for unit testing purposes
      Fixes camel casing in MappedObjectStorage::loadBySfid() call in DeleteHandler
      Converts try/catch pairs in DeleteHandler to non-exception based conditional logic to make logic
      testable
      Cleans up PullBase’s use statements
      Adds event dispatcher service to PullBase’s constructor
      Removes some property reference discrepancies in PullBase
      Removes unnecessary code from PullBaseTest
      Removes unnecessary code from QueueHandlerTest
      Adds back in missing properties in a loadByProperties call in salesforce_push.module
      Adds logger.factory service to PushQueue’s service definition in salesforce_push.services.yml
      Changes logger service injection in PushQueue’s constructor to logger.factory service (there is
      no logger service defined in core.services.yml)
      Fixes all logger service references in PushQueue
      Cleans up SalesforcePushQueueProcessor/Rest’s use statements
      Removes EntityManager service injection in SalesforcePushQueueProcessor/Rest’s
      constructor in favor of already existing EntityTypeManager service
      
      Still to do:
      DeletehandlerTest needs to pass - A deep property call is not working, causing the test to
      error out.
      Fix DeleteHandler’s call to property so it’s easier to mock under test
      Address Warning: array_flip(): Can only flip STRING and INTEGER values! error in or around
      SalesForcePullEvent
      Fix PullBase’s multiple creation of same new Drupal entity (was fixed, now showing up again).
      d13572d8
  23. Feb 01, 2017
  24. Jan 30, 2017
    • git's avatar
      Refactors QueueHandlerTest to streamline · 3a054a2c
      git authored
      Removes needs for TestQueueHandler test class by
      - adding state, request, and logger classes to QueueHandler constructor (injected)
      - converting watchdog_exception calls to injected logger calls (also removes need to
        use LoggerTrait)
      - stubs and overrides the parseUrl methods in a mock QueueHanlder class in the
        test code
      Fixes a null object error with a trinary in PullBase
      Does not fix all PullBase tests
      3a054a2c
  25. Jan 12, 2017
    • git's avatar
      Adds MappingsConstants class, moving constant in salesforce_mapping.module · 8e27779f
      git authored
      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
      8e27779f
  26. Jan 10, 2017
  27. Jan 09, 2017
    • git's avatar
      Updates QueueHandlerTest. · d437f8f1
      git authored
      Updates QuestHandler:
      - moves several objects to decency injection
      - adjusts constructor accordingly
      - moves several Drupal::function calls and procedural functions to wrapper class
      functions
      - adds a true return to main methods for testability
      Updates salesforce_pull_cron to call QueueHandler with new dependencies.
      Adds TestQueueHandler test class to override problematic method/function
      calls.
      d437f8f1
  28. Jan 06, 2017
Loading