Fixes
This commit is contained in:
parent
7f00ee991e
commit
c276d46db4
File diff suppressed because one or more lines are too long
@ -45,7 +45,7 @@ class CalcComplexTest extends TestCase
|
|||||||
$this->assertSame(31.63, $this->engine->getPrice());
|
$this->assertSame(31.63, $this->engine->getPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tesAuflage500(): void
|
public function testAuflage500(): void
|
||||||
{
|
{
|
||||||
$this->engine->setVariable('auflage', 500);
|
$this->engine->setVariable('auflage', 500);
|
||||||
$this->engine->calc();
|
$this->engine->calc();
|
||||||
@ -56,13 +56,12 @@ class CalcComplexTest extends TestCase
|
|||||||
{
|
{
|
||||||
$this->engine->setVariable('produktart_nopresentationpdf', 2);
|
$this->engine->setVariable('produktart_nopresentationpdf', 2);
|
||||||
$this->engine->calc();
|
$this->engine->calc();
|
||||||
file_put_contents("/tmp/f1.txt", print_r($this->engine->getVariables(), true).print_r($this->engine->getDebugCalcVariables(), true).print_r($this->engine->getDebugCalcFormel(), true));
|
$this->assertSame(58.89, $this->engine->getPrice());
|
||||||
$this->assertSame(46.25, $this->engine->getPrice());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tesAndereProduktArt3(): void
|
public function testAndereProduktArt3(): void
|
||||||
{
|
{
|
||||||
$this->engine->setVariable('produktart_nopresentationpdf', 3);
|
$this->engine->setVariable('produktart_nopresentationpdf', 3);
|
||||||
$this->assertSame(36.22, $this->engine->getPrice());
|
$this->assertSame(46.93, $this->engine->getPrice());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user