@@ -35,7 +35,7 @@ public function testGetLastInsertID(): void
35
35
$ command ->insert ('item ' , ['name ' => 'Yii2 starter ' , 'category_id ' => 1 ])->execute ();
36
36
$ command ->insert ('item ' , ['name ' => 'Yii3 starter ' , 'category_id ' => 1 ])->execute ();
37
37
38
- $ this ->assertSame ('7 ' , $ db ->getLastInsertID ('item_SEQ ' ));
38
+ $ this ->assertSame ('7 ' , $ db ->getLastInsertId ('item_SEQ ' ));
39
39
40
40
$ db ->close ();
41
41
}
@@ -57,7 +57,7 @@ public function testGetLastInsertIDWithException(): void
57
57
$ this ->expectException (InvalidArgumentException::class);
58
58
$ this ->expectExceptionMessage ('Oracle not support lastInsertId without sequence name. ' );
59
59
60
- $ db ->getLastInsertID ();
60
+ $ db ->getLastInsertId ();
61
61
}
62
62
63
63
/**
@@ -77,8 +77,8 @@ public function testGetLastInsertIdWithTwoConnection()
77
77
$ sql = 'INSERT INTO {{profile}}([[description]]) VALUES ( \'non duplicate2 \') ' ;
78
78
$ db2 ->createCommand ($ sql )->execute ();
79
79
80
- $ this ->assertNotEquals ($ db1 ->getLastInsertID ('profile_SEQ ' ), $ db2 ->getLastInsertID ('profile_SEQ ' ));
81
- $ this ->assertNotEquals ($ db2 ->getLastInsertID ('profile_SEQ ' ), $ db1 ->getLastInsertID ('profile_SEQ ' ));
80
+ $ this ->assertNotEquals ($ db1 ->getLastInsertId ('profile_SEQ ' ), $ db2 ->getLastInsertId ('profile_SEQ ' ));
81
+ $ this ->assertNotEquals ($ db2 ->getLastInsertId ('profile_SEQ ' ), $ db1 ->getLastInsertId ('profile_SEQ ' ));
82
82
83
83
$ db1 ->close ();
84
84
$ db2 ->close ();
0 commit comments