wiki.techinc.nl/tests/phpunit/integration/includes/db
Tim Starling 551ec29ea6 Check warnings from INSERT during tests
INSERT IGNORE when inserting NULL into a non-nullable field will succeed
with a warning on MySQL but fail on PostgreSQL. In any case, it's
probably harmful and unintended. But to check the error code of MySQL
warnings, you need to query the server with SHOW WARNINGS, so there is a
performance cost.

So, add a configuration variable which, when enabled, checks warnings
after INSERT to see if there were any null type constraint errors. Set
it to true in DevelopmentSettings.php and TestSetup.php.

Change-Id: I5e47e2d3cc7e0f804036e11b512b1e3b76804432
2024-01-12 09:33:05 +11:00
..
DatabaseMysqlTest.php Check warnings from INSERT during tests 2024-01-12 09:33:05 +11:00
DatabasePostgresTest.php rdbms: make DatabasePostgresTest use addDBDataOnce() and use tableName() 2023-12-11 00:31:11 +00:00
DatabaseSqliteTest.php Replace a few manually crafted assertTrue assertions 2023-11-23 09:38:48 +01:00
DatabaseSqliteUpgradeTest.php DatabaseSqliteUpgradeTest: remove unused $sqlDump 2023-12-05 13:25:54 -05:00