We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd27386 commit 9729080Copy full SHA for 9729080
tests/unit/product/BillingRegistryTest.php
@@ -69,15 +69,16 @@ public function testGetBehavior(): void
69
$tariffType = new DummyTariffType();
70
$tariffTypeDefinition = new TariffTypeDefinition($tariffType);
71
$dummyBehavior = new DummyBehavior('dummy');
72
+ $type = Type::anyId('overuse,lb_capacity_unit');
73
$tariffTypeDefinition
74
->withPrices()
- ->priceType(Type::anyId('dummy'))
75
+ ->priceType($type)
76
->withBehaviors()
77
->attach($dummyBehavior);
78
79
$this->registry->addTariffType($tariffTypeDefinition);
80
- $behavior = $this->registry->getBehavior($tariffType->name(), DummyBehavior::class);
81
+ $behavior = $this->registry->getBehavior($type->getName(), DummyBehavior::class);
82
83
$this->assertSame($dummyBehavior->getContext(), $behavior->getContext());
84
}
0 commit comments