mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Fixed e_db_abstractTest::testDb_Select_gen() UPDATE query
A previous test may have changed the value so that the update would not have changed anything.
This commit is contained in:
parent
9b59527b3d
commit
f2edd94ea4
@ -301,10 +301,17 @@ abstract class e_db_abstractTest extends \Codeception\Test\Unit
|
||||
|
||||
public function testDb_Select_gen()
|
||||
{
|
||||
$this->db->db_Select_gen(
|
||||
"UPDATE `#user` SET user_signature = 'something else' WHERE user_id = 1"
|
||||
);
|
||||
$result = $this->db->db_Select_gen(
|
||||
"UPDATE `#user` SET user_signature = 'e_db' WHERE user_id = 1"
|
||||
);
|
||||
$this->assertEquals(1,$result);
|
||||
$result = $this->db->db_Select_gen(
|
||||
"UPDATE `#user` SET user_signature = 'e_db' WHERE user_id = 1"
|
||||
);
|
||||
$this->assertEquals(0,$result);
|
||||
|
||||
|
||||
$qry = "INSERT INTO #core_media_cat(media_cat_owner,media_cat_title,media_cat_sef,media_cat_diz,media_cat_class,media_cat_image,media_cat_order) SELECT media_cat_owner,media_cat_title,media_cat_sef,media_cat_diz,media_cat_class,media_cat_image,media_cat_order FROM #core_media_cat WHERE media_cat_id = 1";
|
||||
|
Loading…
x
Reference in New Issue
Block a user