From: Aaron Schulz Date: Mon, 25 Jun 2018 20:14:08 +0000 (+0100) Subject: Avoid bad method call to patchPatch() in DbTestRecorder X-Git-Tag: 1.34.0-rc.0~4965^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=ec3289524e33fd93c9dc51c2a0ddffc24068583a;p=lhc%2Fweb%2Fwiklou.git Avoid bad method call to patchPatch() in DbTestRecorder Bug: T193995 Change-Id: Ibc480b04463792b7cd720a6eb080e0960a30e440 --- 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"; }