Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 29... Línea 29...
29
 * @package message_popup
29
 * @package message_popup
30
 * @category test
30
 * @category test
31
 * @copyright 2016 Ryan Wyllie <ryan@moodle.com>
31
 * @copyright 2016 Ryan Wyllie <ryan@moodle.com>
32
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 */
33
 */
34
class api_test extends \advanced_testcase {
34
final class api_test extends \advanced_testcase {
35
    use \message_popup_test_helper;
35
    use \message_popup_test_helper;
Línea 36... Línea 36...
36
 
36
 
37
    /** @var \phpunit_message_sink message redirection. */
37
    /** @var \phpunit_message_sink message redirection. */
Línea 41... Línea 41...
41
     * Test set up.
41
     * Test set up.
42
     *
42
     *
43
     * This is executed before running any test in this file.
43
     * This is executed before running any test in this file.
44
     */
44
     */
45
    public function setUp(): void {
45
    public function setUp(): void {
-
 
46
        parent::setUp();
46
        $this->preventResetByRollback(); // Messaging is not compatible with transactions.
47
        $this->preventResetByRollback(); // Messaging is not compatible with transactions.
47
        $this->messagesink = $this->redirectMessages();
48
        $this->messagesink = $this->redirectMessages();
48
        $this->resetAfterTest();
49
        $this->resetAfterTest();
49
    }
50
    }