File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use hiqdev \php \billing \product \BillingRegistry ;
6
6
use hiqdev \php \billing \product \Exception \BillingRegistryLockedException ;
7
+ use hiqdev \php \billing \product \price \PriceTypeDefinition ;
7
8
use hiqdev \php \billing \product \TariffTypeDefinition ;
8
9
use hiqdev \php \billing \product \TariffTypeDefinitionInterface ;
9
10
use hiqdev \php \billing \product \Exception \AggregateNotFoundException ;
10
11
use hiqdev \php \billing \product \invoice \InvalidRepresentationException ;
11
- use hiqdev \php \billing \product \quantity \QuantityFormatterNotFoundException ;
12
- use hiqdev \php \billing \product \behavior \BehaviorInterface ;
13
12
use hiqdev \php \billing \product \behavior \BehaviorNotFoundException ;
14
13
use hiqdev \php \billing \type \Type ;
15
14
use PHPUnit \Framework \TestCase ;
@@ -38,7 +37,10 @@ public function testAddTariffTypeAndRetrievePriceTypes(): void
38
37
$ priceTypes = iterator_to_array ($ this ->registry ->priceTypes ());
39
38
40
39
$ this ->assertCount (1 , $ priceTypes );
41
- $ this ->assertSame ($ this ->tariffTypeDefinition , $ priceTypes [0 ]);
40
+ /** @var PriceTypeDefinition $priceTypeDefinition */
41
+ $ priceTypeDefinition = $ priceTypes [0 ];
42
+
43
+ $ this ->assertSame ($ type , $ priceTypeDefinition ->type ());
42
44
}
43
45
44
46
public function testLockPreventsModification (): void
You can’t perform that action at this time.
0 commit comments