Fixes
This commit is contained in:
parent
0cf2a88d98
commit
24fe351d64
File diff suppressed because one or more lines are too long
@ -114,7 +114,6 @@ class Select extends Base
|
||||
}
|
||||
|
||||
if($system) {
|
||||
$this->element->setColorSystem($colorSystem);
|
||||
|
||||
foreach ($system->getAllColors() as $color) {
|
||||
$optColor = new \PSC\Library\Calc\Option\Type\Select\ColorOpt();
|
||||
@ -133,6 +132,7 @@ class Select extends Base
|
||||
return $temp;
|
||||
});
|
||||
|
||||
$this->element->setColorSystem($colorSystem);
|
||||
|
||||
$this->element->addOptions($value);
|
||||
}
|
||||
|
||||
@ -42,6 +42,8 @@ class CalcTest extends TestCase
|
||||
{
|
||||
$this->engine->calc();
|
||||
$this->assertSame(76.55, $this->engine->getPrice());
|
||||
$this->assertCount(86, $this->engine->getArticle()->getOptionById('farbe_1_v_wert_hks')->getOptions());
|
||||
$this->assertCount(86, $this->engine->getArticle()->getOptionById('farbe_2_v_wert_hks')->getOptions());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user