FIX Travis avoid error "you should use $this->db-> inside a class file"

This commit is contained in:
Regis Houssin 2022-01-27 13:06:43 +01:00
parent a1dc6e7e9b
commit b07fff5754
2 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class InfoBox
$sql .= " ORDER BY b.box_order";
} else { // available
$sql = "SELECT d.rowid as box_id, d.file, d.note, d.tms";
$sql .= " FROM ".$this->db->prefix()."boxes_def as d";
$sql .= " FROM ".$db->prefix()."boxes_def as d";
$sql .= " WHERE d.entity IN (0, ".$conf->entity.")";
}

View File

@ -213,6 +213,7 @@ class CodingPhpTest extends PHPUnit\Framework\TestCase
'multicurrency.class.php',
'productbatch.class.php',
'reception.class.php',
'infobox.class.php',
))) {
// Must not find $db->
$ok=true;