Commit 171b7320e8423cb92bd7fb73eea9e307f91b4a5d
1 parent
4d0f315d
Exists in
master
and in
2 other branches
bugfix tests
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
tests/TestCase/Controller/MaterielsControllerTest.php
... | ... | @@ -132,7 +132,7 @@ class MaterielsControllerTest extends General { |
132 | 132 | private function _checkMaterielExistsInViewView($role, $id, $designation=NULL, $num_inventaire=NULL) {} |
133 | 133 | private function _checkMaterielExistsInDatabase($role, $id, $designation=NULL, $num_inventaire=NULL) {} |
134 | 134 | private function _checkMaterielViewIsOK($role, $id, $designation=NULL, $num_inventaire=NULL) {} |
135 | - private function _checkNbMaterielInIndexViewIs(bool $COPIED, $role, $nbmat, $designation=NULL, $num_inventaire=NULL) { | |
135 | + private function _checkNbMaterielInIndexViewIs($COPIED, $role, $nbmat, $designation=NULL, $num_inventaire=NULL) { | |
136 | 136 | $this->get('/materiels/index'); |
137 | 137 | if (! $COPIED) |
138 | 138 | $this->assertResponseNotContains("Liste des matériels (".$nbmat.")", $role); |
... | ... | @@ -650,7 +650,7 @@ class MaterielsControllerTest extends General { |
650 | 650 | // 1) RULE MATERIEL.COPY.1 : |
651 | 651 | // Copie d'un matos (CREATED) à l'IDENTIQUE (tel quel sans rien changer, |
652 | 652 | // sauf ce qui changera automatiquement: id, numlab) |
653 | - $this->_testMatCopy(1, TRUE, $role, 1, [], 'TEST-2014-0001'); | |
653 | + $this->_testMatCopy(1, true, $role, 1, [], 'TEST-2014-0001'); | |
654 | 654 | |
655 | 655 | // 2) RULE MATERIEL.COPY.2 : |
656 | 656 | // Copie d'un matos (CREATED) en changeant quelques données |
... | ... | @@ -669,7 +669,7 @@ class MaterielsControllerTest extends General { |
669 | 669 | //'email_responsable' => 'Jacques.Utilisateur@irap.omp.eu', |
670 | 670 | //'fournisseur_id' => 2 |
671 | 671 | ]; |
672 | - $this->_testMatCopy(2, TRUE, $role, 1, $modified_data, 'TEST-2016-0015'); | |
672 | + $this->_testMatCopy(2, true, $role, 1, $modified_data, 'TEST-2016-0015'); | |
673 | 673 | |
674 | 674 | // 3) RULE MATERIEL.COPY.3 : |
675 | 675 | // Impossible de copier un matos de statut superieur à CREATED (sauf pour SUPERADMIN) |
... | ... | @@ -693,7 +693,7 @@ class MaterielsControllerTest extends General { |
693 | 693 | // AVANT add |
694 | 694 | // USER ne voit pas les materiels ARCHIVED |
695 | 695 | $nbmat = $this->USER_IS_ADMIN_AT_LEAST() ? 7 : 6; |
696 | - $this->_checkNbMaterielInIndexViewIs(TRUE, $role, $nbmat); | |
696 | + $this->_checkNbMaterielInIndexViewIs(true, $role, $nbmat); | |
697 | 697 | /* |
698 | 698 | $this->get('/materiels/index'); |
699 | 699 | // USER ne voit pas les materiels ARCHIVED | ... | ... |