1, 'max' => 5]; $restriction->setFormule($formule); $restriction->setNbStructureMax(10); $restriction->setRestrictionConfig($config); $restriction->setNbAlimentaireMax(2); $restriction->setNbBarhumsMax(3); $this->assertSame($formule, $restriction->getFormule()); $this->assertEquals(10, $restriction->getNbStructureMax()); $this->assertEquals($config, $restriction->getRestrictionConfig()); $this->assertEquals(2, $restriction->getNbAlimentaireMax()); $this->assertEquals(3, $restriction->getNbBarhumsMax()); } }