From 0263c91ae208629e6d987fbde73159d3540f0d0e Mon Sep 17 00:00:00 2001 From: jygaulier Date: Mon, 25 Sep 2023 17:09:38 +0200 Subject: [PATCH] fix test --- tests/classes/databox/subdefTest.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/classes/databox/subdefTest.php b/tests/classes/databox/subdefTest.php index 9478a50147..362aa7fcdd 100644 --- a/tests/classes/databox/subdefTest.php +++ b/tests/classes/databox/subdefTest.php @@ -258,17 +258,12 @@ public function testSubstituableStatus($expected, $configValue, $message) { $xmlTemplate = <<<'EOF' - + /home/datas/noweb/db_alch_phrasea/video/ image - %s EOF; - if (null !== $configValue) { - $configValue = ' orderable="' . $configValue . '"'; - } - $xml = sprintf($xmlTemplate, $configValue ?: ''); $sut = new databox_subdef(new Type\Image(), simplexml_load_string($xml), $this->translator); @@ -280,9 +275,8 @@ public function providesSubstituableStatuses() { return [ [false, '', 'No substituable Status set should defaults to true'], - [false, '', 'substituable should default to false'], - [true, 'yes', 'substituable should be true'], - [false, 'no', 'substituable should be false'], + [false, 'substituable="false"', 'substituable should default to false'], + [true, 'substituable="true"', 'substituable should be true'], ]; }