Skip to content

Commit 9729080

Browse files
HP-1751 tiny
1 parent cd27386 commit 9729080

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/product/BillingRegistryTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,16 @@ public function testGetBehavior(): void
6969
$tariffType = new DummyTariffType();
7070
$tariffTypeDefinition = new TariffTypeDefinition($tariffType);
7171
$dummyBehavior = new DummyBehavior('dummy');
72+
$type = Type::anyId('overuse,lb_capacity_unit');
7273
$tariffTypeDefinition
7374
->withPrices()
74-
->priceType(Type::anyId('dummy'))
75+
->priceType($type)
7576
->withBehaviors()
7677
->attach($dummyBehavior);
7778

7879
$this->registry->addTariffType($tariffTypeDefinition);
7980

80-
$behavior = $this->registry->getBehavior($tariffType->name(), DummyBehavior::class);
81+
$behavior = $this->registry->getBehavior($type->getName(), DummyBehavior::class);
8182

8283
$this->assertSame($dummyBehavior->getContext(), $behavior->getContext());
8384
}

0 commit comments

Comments
 (0)