Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Unit tests
    • Rank:
      44793

      Description

      The idea is to redirect messaging to some kind of buffer instead of standard messaging plugins, this would allow unit testing of code that is supposed to send messages.

        Issue Links

          Activity

          Hide
          Aparup Banerjee added a comment -

          Thanks for this Petr!

          ps: should this be added to any phpunit docs? Possibly in http://docs.moodle.org/dev/Writing_PHPUnit_tests#Extra_test_settings .. in any case (i've added the dev_docs_required just in case)

          Show
          Aparup Banerjee added a comment - Thanks for this Petr! ps: should this be added to any phpunit docs? Possibly in http://docs.moodle.org/dev/Writing_PHPUnit_tests#Extra_test_settings .. in any case (i've added the dev_docs_required just in case)
          Hide
          Tim Barker added a comment -

          Unit tests run automatically on a regular basis. They passed

          Show
          Tim Barker added a comment - Unit tests run automatically on a regular basis. They passed
          Hide
          Petr Škoda added a comment -

          docs updated, thanks

          Show
          Petr Škoda added a comment - docs updated, thanks
          Hide
          Aparup Banerjee added a comment -

          Your issue has dug up some gold.
          It works great i've been told.
          Go forth, be brave, be bold.

          yay! "All your thoughts are belong to everyone."

          Thanks and ciao!

          Show
          Aparup Banerjee added a comment - Your issue has dug up some gold. It works great i've been told. Go forth, be brave, be bold. yay! "All your thoughts are belong to everyone." Thanks and ciao!

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: