File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments