Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-6359

Add helper method to test fill and search regex with phpunits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.5, 3.1.1
    • 3.1
    • Module: Survey Pro
    • None
    • MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE

      splitting mform element names to process form save and form search, the same regex is used twice.

      1) they are duplicate code.
      2) they are not testable by phpunit (only testable via web)
      3) so it sounds natural to create a new helper conversion function, that receives the data and returns the processed information.
      4) later the helper function will be 100% testable.

            daniss Daniele Cordella
            daniss Daniele Cordella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.