X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fparser%2FDbTestRecorder.php;h=2089f64a02a85975467f898761255a005b819187;hp=f68f5953d1f652082d843397053e9275108caa63;hb=32d551a4397763604b32e2347ef65f7fc6fc9cf8;hpb=e9afac43b295d57d1e7499cd95e48bb04fbe9c3a 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"; }