Fix Calc
This commit is contained in:
parent
fbac716321
commit
8a78f38c66
File diff suppressed because one or more lines are too long
@ -66,4 +66,13 @@ class CalcTest extends TestCase
|
|||||||
$this->assertEquals("format2" , $this->engine->getArticle()->getOptionById('format1')->getName());
|
$this->assertEquals("format2" , $this->engine->getArticle()->getOptionById('format1')->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testFormat3(): void
|
||||||
|
{
|
||||||
|
$this->engine->setVariable('auflage', 412);
|
||||||
|
$this->engine->calc();
|
||||||
|
$this->assertTrue($this->engine->getArticle()->getOptionById('format1')->isValid());
|
||||||
|
$this->assertEquals(150, $this->engine->getArticle()->getOptionById('format1')->getRawValue());
|
||||||
|
$this->assertEquals("format3" , $this->engine->getArticle()->getOptionById('format1')->getName());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,11 +20,15 @@
|
|||||||
</option>
|
</option>
|
||||||
<option id="format1" name="format2" type="Input" default="50">
|
<option id="format1" name="format2" type="Input" default="50">
|
||||||
<auflage>
|
<auflage>
|
||||||
<grenze>201-</grenze>
|
<grenze>201-400</grenze>
|
||||||
</auflage>
|
</auflage>
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
|
<option id="format1" name="format3" type="Input" default="150">
|
||||||
|
<auflage>
|
||||||
|
<grenze>401-</grenze>
|
||||||
|
</auflage>
|
||||||
|
</option>
|
||||||
</artikel>
|
</artikel>
|
||||||
|
|
||||||
<!-- Weitere Kalkulationselemente hier einfügen -->
|
<!-- Weitere Kalkulationselemente hier einfügen -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user