@@ -2834,7 +2834,7 @@ public function testShowGrantsFor() {
28342834 $ result ,
28352835 array (
28362836 (object ) array (
2837- 'Grants for root@localhost ' => 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION ' ,
2837+ 'Grants for root@% ' => 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION ' ,
28382838 ),
28392839 )
28402840 );
@@ -4188,7 +4188,7 @@ public function getReservedPrefixTestData(): array {
41884188 public function testInformationSchemaIsReadonly ( string $ query ): void {
41894189 $ this ->assertQuery ( 'CREATE TABLE t1 (id INT) ' );
41904190 $ this ->expectException ( WP_SQLite_Driver_Exception::class );
4191- $ this ->expectExceptionMessage ( "Access denied for user 'sqlite '@'%' to database 'information_schema' " );
4191+ $ this ->expectExceptionMessage ( "Access denied for user 'root '@'%' to database 'information_schema' " );
41924192 $ this ->assertQuery ( $ query );
41934193 }
41944194
@@ -4220,7 +4220,7 @@ public function getInformationSchemaIsReadonlyTestData(): array {
42204220 public function testInformationSchemaIsReadonlyWithUse ( string $ query ): void {
42214221 $ this ->assertQuery ( 'CREATE TABLE t1 (id INT) ' );
42224222 $ this ->expectException ( WP_SQLite_Driver_Exception::class );
4223- $ this ->expectExceptionMessage ( "Access denied for user 'sqlite '@'%' to database 'information_schema' " );
4223+ $ this ->expectExceptionMessage ( "Access denied for user 'root '@'%' to database 'information_schema' " );
42244224 $ this ->assertQuery ( 'USE information_schema ' );
42254225 $ this ->assertQuery ( $ query );
42264226 }
@@ -9808,7 +9808,7 @@ public function testNonEmptyColumnMeta(): void {
98089808 // SHOW GRANTS
98099809 $ this ->assertQuery ( 'SHOW GRANTS ' );
98109810 $ this ->assertSame ( 1 , $ this ->engine ->get_last_column_count () );
9811- $ this ->assertSame ( 'Grants for root@localhost ' , $ this ->engine ->get_last_column_meta ()[0 ]['name ' ] );
9811+ $ this ->assertSame ( 'Grants for root@% ' , $ this ->engine ->get_last_column_meta ()[0 ]['name ' ] );
98129812
98139813 // SHOW VARIABLES
98149814 $ this ->assertQuery ( 'SHOW VARIABLES ' );
0 commit comments