MDL-56354 unittests: Put debug messages in the failure notice.
This commit is contained in:
@@ -71,6 +71,16 @@ class core_phpunit_advanced_testcase extends advanced_testcase {
|
||||
set_debugging(DEBUG_DEVELOPER);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*
|
||||
* Annotations are a valid PHPUnit method for running tests. Debugging needs to support them.
|
||||
*/
|
||||
public function debugging_called_with_annotation() {
|
||||
debugging('pokus', DEBUG_MINIMAL);
|
||||
$this->assertDebuggingCalled('pokus', DEBUG_MINIMAL);
|
||||
}
|
||||
|
||||
public function test_set_user() {
|
||||
global $USER, $DB, $SESSION;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user