X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FDbTestRecorder.php;h=2089f64a02a85975467f898761255a005b819187;hb=5f3b124dfefcd7d0da0ebfd89f9ac2dbcc5fdba3;hp=f68f5953d1f652082d843397053e9275108caa63;hpb=dae4c94d893057345f62a3d498fb85c0a54de5a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/DbTestRecorder.php b/tests/parser/DbTestRecorder.php index f68f5953d1..2089f64a02 100644 --- a/tests/parser/DbTestRecorder.php +++ b/tests/parser/DbTestRecorder.php @@ -41,7 +41,8 @@ class DbTestRecorder extends TestRecorder { || !$this->db->tableExists( 'testitem' ) ) { print "WARNING> `testrun` table not found in database. Trying to create table.\n"; - $this->db->sourceFile( $this->db->patchPath( 'patch-testrun.sql' ) ); + $updater = DatabaseUpdater::newForDB( $this->db ); + $this->db->sourceFile( $updater->patchPath( $this->db, 'patch-testrun.sql' ) ); echo "OK, resuming.\n"; }