diff --git a/e107_handlers/user_model.php b/e107_handlers/user_model.php index 01536c058..0b5b8ff6b 100644 --- a/e107_handlers/user_model.php +++ b/e107_handlers/user_model.php @@ -1813,7 +1813,7 @@ class e_user extends e_user_model } 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); } } diff --git a/e107_tests/tests/unit/e107_db_debugTest.php b/e107_tests/tests/unit/e107_db_debugTest.php index 750a55142..bfe7c3d2f 100644 --- a/e107_tests/tests/unit/e107_db_debugTest.php +++ b/e107_tests/tests/unit/e107_db_debugTest.php @@ -31,16 +31,18 @@ public function testShowIf() { - } + }*/ public function testShow_Log() { - + $result = $this->dbg->Show_Log(); + $this->assertEmpty($result); } public function testShow_Includes() { - + $result = $this->dbg->Show_Includes(); + $this->assertEmpty($result); } public function testSave() @@ -50,8 +52,9 @@ public function testShow_DEPRECATED() { - - }*/ + $result = $this->dbg->Show_DEPRECATED(); + $this->assertEmpty($result); + } public function testLog() { @@ -63,6 +66,31 @@ $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() { @@ -84,15 +112,7 @@ } - public function testShow_SQL_Details() - { - } - - public function testShow_SC_BB() - { - - } public function testShow_All() { @@ -114,15 +134,7 @@ } - public function testShow_Performance() - { - } - - public function testShow_PATH() - { - - } public function testDump() {