Commit Graph

8 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
346923e20a
Set dbi only when the test needs it
Related to https://github.com/phpmyadmin/phpmyadmin/pull/17637

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-07-14 02:21:45 -03:00
Maurício Meneghini Fauth
2cf3497a0e Inline dbi creation in some test classes
Creates a new instance of DatabaseInterface for each test.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-04-19 11:22:34 -03:00
Maurício Meneghini Fauth
3befb5f8d0
Remove debugSQLInfo JS global variable
Replaces it with a ConsoleDebug property.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-22 15:24:13 -03:00
Maurício Meneghini Fauth
62683a0115 Add method to AbstractController to send error messages
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-20 16:39:33 -03:00
Maurício Meneghini Fauth
0d4d2a4935
Add exceptions for invalid identifier names
- Adds the PhpMyAdmin\Dbal\InvalidIdentifierName exception
- Adds the PhpMyAdmin\Dbal\InvalidDatabaseName exception
- Adds the PhpMyAdmin\Dbal\InvalidTableName exception

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-19 17:35:35 -03:00
Maurício Meneghini Fauth
619d4acb4a
Refactor DropColumnConfirmationController class
- Removes global variables
- Redesigns the HTML to use Bootstrap styles
- Add more tests

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-18 15:36:07 -03:00
Maurício Meneghini Fauth
9ebb17dd50
Add basic test for Table\DropColumnConfirmationController
Fixes 476a80c277

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-02-25 16:02:06 -03:00
Maurício Meneghini Fauth
476a80c277
Add basic test for Table\DropColumnConfirmationController
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-02-25 16:00:18 -03:00