diff --git a/tests/src/Traits/RatePlanDetailsKernelTestAssertionTrait.php b/tests/src/Traits/RatePlanDetailsKernelTestAssertionTrait.php index 275430f5..9b4f8fdf 100644 --- a/tests/src/Traits/RatePlanDetailsKernelTestAssertionTrait.php +++ b/tests/src/Traits/RatePlanDetailsKernelTestAssertionTrait.php @@ -56,7 +56,7 @@ public function assertRatePlanDetails(RatePlanDetail $details) { $this->assertCssElementText(".rate-plan-detail .rate-plan-detail__overview__country > .field__item", $details->getOrganization()->getCountry()); // Pricing Type. $this->assertCssElementText(".rate-plan-detail .rate-plan-detail__overview__pricing-type > .field__label", 'Pricing type'); - $this->assertCssElementText(".rate-plan-detail .rate-plan-detail__overview__pricing-type > .field__item", ucfirst($details->getRevenueType())); + $this->assertCssElementText(".rate-plan-detail .rate-plan-detail__overview__pricing-type > .field__item", ucfirst($details->getRevenueType() ? $details->getRevenueType() : '')); // Test rate plan rates. $prefix = '.rate-plan-detail:first-child';