streamline debug reporting

This commit is contained in:
Spine
2025-09-14 03:45:17 +00:00
parent 774737c574
commit bf69b2e1b7
11 changed files with 328 additions and 43 deletions

View File

@@ -562,4 +562,14 @@ class UserTest extends TestCase {
);
$second->remove();
}
public function testDebugProfile(): void {
global $Debug;
$Debug->flush(); // clear out the accumulated errors
$case = $Debug->profile($this->user, false);
$this->assertNull($case, 'user-debug-profile-no-reason');
$case = $Debug->profile($this->user, true);
$this->assertInstanceOf(ErrorLog::class, $case, 'user-debug-profile-a-reason');
$case->remove();
}
}