Skip to content

Commit

Permalink
Comment out unsupported module mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Aug 20, 2024
1 parent 26d0873 commit 24486a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dev/tools/phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@
* Map deprecated module names to new module names
*/
$DEPRECATED_MODULE_MAPPING = array(
'actioncomm' => 'agenda',
// 'actioncomm' => 'agenda', // Not aliased, unsupported
'adherent' => 'member',
'adherent_type' => 'member_type',
'banque' => 'bank',
'categorie' => 'category',
'commande' => 'order',
'contrat' => 'contract',
'entrepot' => 'stock',
// 'entrepot' => 'stock', // Not aliased, unsupported
'expedition' => 'shipping',
'facture' => 'invoice',
'ficheinter' => 'intervention',
'product_fournisseur_price' => 'productsupplierprice',
'product_price' => 'productprice',
'projet' => 'project',
'propale' => 'propal',
// 'propale' => 'propal', // Not aliased, unsupported
'socpeople' => 'contact',
);

Expand Down
6 changes: 3 additions & 3 deletions test/phpunit/CommonClassTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,21 +302,21 @@ public function objCompare($oA, $oB, $ignoretype = true, $fieldstoignorearray =
* Map deprecated module names to new module names
*/
const DEPRECATED_MODULE_MAPPING = array(
'actioncomm' => 'agenda',
// 'actioncomm' => 'agenda', // Not supported
'adherent' => 'member',
'adherent_type' => 'member_type',
'banque' => 'bank',
'categorie' => 'category',
'commande' => 'order',
'contrat' => 'contract',
'entrepot' => 'stock',
// 'entrepot' => 'stock', // Not supported
'expedition' => 'shipping',
'facture' => 'invoice',
'fichinter' => 'intervention',
'product_fournisseur_price' => 'productsupplierprice',
'product_price' => 'productprice',
'projet' => 'project',
'propale' => 'propal',
// 'propale' => 'propal', // Not supported
'socpeople' => 'contact',
);

Expand Down
1 change: 0 additions & 1 deletion test/phpunit/ConfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,5 @@ public function testModulePaths($old, $new)
print "DIR_OUTPUT for $old is {$conf->$old->dir_output}".PHP_EOL;
print "DIR_OUTPUT for $new is {$conf->$new->dir_output}".PHP_EOL;
$this->assertEquals($conf->$old->dir_output, $conf->$new->dir_output, "Old and new dir_output must be equal");
$this->assertEquals($conf->$old->dir_output, $conf->$new->dir_output, "Old and new dir_output must be equal");
}
}

0 comments on commit 24486a1

Please sign in to comment.