@@ -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 );
@@ -4204,7 +4204,7 @@ public function getReservedPrefixTestData(): array {
42044204 public function testInformationSchemaIsReadonly ( string $ query ): void {
42054205 $ this ->assertQuery ( 'CREATE TABLE tables (id INT) ' );
42064206 $ this ->expectException ( WP_SQLite_Driver_Exception::class );
4207- $ this ->expectExceptionMessage ( "Access denied for user 'sqlite '@'%' to database 'information_schema' " );
4207+ $ this ->expectExceptionMessage ( "Access denied for user 'root '@'%' to database 'information_schema' " );
42084208 $ this ->assertQuery ( $ query );
42094209 }
42104210
@@ -4236,7 +4236,7 @@ public function getInformationSchemaIsReadonlyTestData(): array {
42364236 public function testInformationSchemaIsReadonlyWithUse ( string $ query ): void {
42374237 $ this ->assertQuery ( 'CREATE TABLE tables (id INT) ' );
42384238 $ this ->expectException ( WP_SQLite_Driver_Exception::class );
4239- $ this ->expectExceptionMessage ( "Access denied for user 'sqlite '@'%' to database 'information_schema' " );
4239+ $ this ->expectExceptionMessage ( "Access denied for user 'root '@'%' to database 'information_schema' " );
42404240 $ this ->assertQuery ( 'USE information_schema ' );
42414241 $ this ->assertQuery ( $ query );
42424242 }
@@ -9906,7 +9906,7 @@ public function testNonEmptyColumnMeta(): void {
99069906 // SHOW GRANTS
99079907 $ this ->assertQuery ( 'SHOW GRANTS ' );
99089908 $ this ->assertSame ( 1 , $ this ->engine ->get_last_column_count () );
9909- $ this ->assertSame ( 'Grants for root@localhost ' , $ this ->engine ->get_last_column_meta ()[0 ]['name ' ] );
9909+ $ this ->assertSame ( 'Grants for root@% ' , $ this ->engine ->get_last_column_meta ()[0 ]['name ' ] );
99109910
99119911 // SHOW VARIABLES
99129912 $ this ->assertQuery ( 'SHOW VARIABLES ' );
0 commit comments