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 7d3dc69
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 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,14 +39,14 @@
* 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',
// 'adherent_type' => 'member_type', // Not aliased, unsupported
'banque' => 'bank',
'categorie' => 'category',
'commande' => 'order',
'contrat' => 'contract',
'entrepot' => 'stock',
// 'entrepot' => 'stock', // Not aliased, unsupported
'expedition' => 'shipping',
'facture' => 'invoice',
'ficheinter' => 'intervention',
Expand Down
8 changes: 4 additions & 4 deletions test/phpunit/CommonClassTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ 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',
// 'adherent_type' => 'member_type', // Not supported (Undefined property: Conf::$adherent_type)
'banque' => 'bank',
'categorie' => 'category',
'commande' => 'order',
'contrat' => 'contract',
'entrepot' => 'stock',
// 'entrepot' => 'stock', // Not supported
'expedition' => 'shipping',
'facture' => 'invoice',
'fichinter' => 'intervention',
Expand All @@ -322,7 +322,7 @@ public function objCompare($oA, $oB, $ignoretype = true, $fieldstoignorearray =

const EFFECTIVE_DEPRECATED_MODULE_MAPPING = array(
'adherent' => 'member',
'adherent_type' => 'member_type',
// 'adherent_type' => 'member_type', // Not supported (Undefined property: Conf::$adherent_type)
'banque' => 'bank',
'contrat' => 'contract',
'entrepot' => 'stock',
Expand Down
7 changes: 3 additions & 4 deletions test/phpunit/ConfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ public function testModulePaths($old, $new)
$langs = $this->savlangs;
$db = $this->savdb;

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");
// 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->$new->dir_output, $conf->$old->dir_output, "Old ($old/expected) and new dir_output ($new/result) must be equal");
}
}

0 comments on commit 7d3dc69

Please sign in to comment.