Details

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

      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.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            nebgor 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
            nebgor 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
            timb Tim Barker added a comment -

            Unit tests run automatically on a regular basis. They passed

            Show
            timb Tim Barker added a comment - Unit tests run automatically on a regular basis. They passed
            Hide
            skodak Petr Skoda added a comment -

            docs updated, thanks

            Show
            skodak Petr Skoda added a comment - docs updated, thanks
            Hide
            nebgor 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
            nebgor 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:
                  Fix Release Date:
                  3/Dec/12