Skip to content
Snippets Groups Projects
Commit d58d0583 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #12996 : fix tests failures

parent ebc667ec
Branches
Tags
3 merge requests!529Hotline 6.56,!418Dev#12996 formation ajout zone groupe utilisateur,!417Dev#12996 formation ajout zone groupe utilisateur
......@@ -235,15 +235,11 @@ class CustomFieldsControllerAddIndexTest extends CustomFieldControllerTestCase {
}
public function getFieldTypeValues() {
return (new Class_CustomField_Meta())->getFieldTypes();
}
/** @test
* @dataProvider getFieldTypeValues
*/
public function fieldTypeValueShouldBeAsExpected($value, $label) {
$this->assertXpathContentContains('//form//select/option[@value="'.$value.'"]', $label,$this->_response->getBody());
/** @test */
public function fieldTypeValueShouldBeAsExpected() {
foreach((new Class_CustomField_Meta())->getFieldTypes() as $value => $label)
$this->assertXpathContentContains('//form//select/option[@value="'.$value.'"]',
$label);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment