1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Improved debugging info on social login update failure.

This commit is contained in:
Cameron 2020-04-09 10:03:42 -07:00
parent c8f6c49720
commit bd647b1514
2 changed files with 34 additions and 22 deletions

View File

@ -1813,7 +1813,7 @@ class e_user extends e_user_model
} }
else else
{ {
e107::getLog()->add('User Profile Update Failed', $userdata, E_LOG_WARNING, "XUP_LOGIN", LOG_TO_ADMIN, array('user_id'=>$user['user_id'],'user_name'=>$user['user_name'], 'user_email'=>$userdata['user_email'])); e107::getLog()->add('User Profile Update Failed', $userdata, E_LOG_WARNING, "XUP_LOGIN", LOG_TO_ADMIN, $updateQry);
} }
} }

View File

@ -31,16 +31,18 @@
public function testShowIf() public function testShowIf()
{ {
} }*/
public function testShow_Log() public function testShow_Log()
{ {
$result = $this->dbg->Show_Log();
$this->assertEmpty($result);
} }
public function testShow_Includes() public function testShow_Includes()
{ {
$result = $this->dbg->Show_Includes();
$this->assertEmpty($result);
} }
public function testSave() public function testSave()
@ -50,8 +52,9 @@
public function testShow_DEPRECATED() public function testShow_DEPRECATED()
{ {
$result = $this->dbg->Show_DEPRECATED();
}*/ $this->assertEmpty($result);
}
public function testLog() public function testLog()
{ {
@ -63,6 +66,31 @@
$this->assertStringContainsString('e107_db_debugTest->testLog()',$result); $this->assertStringContainsString('e107_db_debugTest->testLog()',$result);
} }
public function testShow_Performance()
{
$result = $this->dbg->Show_Performance();
$this->assertEmpty($result);
}
public function testShow_PATH()
{
$result = $this->dbg->Show_PATH();
$this->assertEmpty($result);
}
public function testShow_SQL_Details()
{
$result = $this->dbg->Show_SQL_Details();
$this->assertEmpty($result);
}
public function testShow_SC_BB()
{
$result = $this->dbg->Show_SC_BB();
$this->assertEmpty($result);
}
/* /*
public function testLogCode() public function testLogCode()
{ {
@ -84,15 +112,7 @@
} }
public function testShow_SQL_Details()
{
}
public function testShow_SC_BB()
{
}
public function testShow_All() public function testShow_All()
{ {
@ -114,15 +134,7 @@
} }
public function testShow_Performance()
{
}
public function testShow_PATH()
{
}
public function testDump() public function testDump()
{ {