Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Shorter assertion exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
bpuig committed Aug 6, 2022
1 parent ce4b110 commit 531fdc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/PlanCombinationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PlanCombinationTest extends TestCase
*/
public function testUnableToCreatePlanCombinationWithExistingTag()
{
$this->expectExceptionMessage('UNIQUE constraint failed: ' . config('subby.tables.plan_combinations') . '.tag');
$this->expectExceptionMessage('UNIQUE constraint failed');
$this->testPlanBasic->combinations()->create([
'tag' => 'test-plan-basic-esp-eur-1-year',
'country' => 'ESP',
Expand All @@ -29,7 +29,7 @@ public function testUnableToCreatePlanCombinationWithExistingTag()
*/
public function testUnableToCreatePlanCombinationWithExistingContent()
{
$this->expectExceptionMessage('UNIQUE constraint failed: ' . config('subby.tables.plan_combinations') . '.country, ' . config('subby.tables.plan_combinations') . '.currency, ' . config('subby.tables.plan_combinations') . '.invoice_period, ' . config('subby.tables.plan_combinations') . '.invoice_interval');
$this->expectExceptionMessage('UNIQUE constraint failed');
$this->testPlanBasic->combinations()->create([
'tag' => 'test-2',
'country' => 'ESP',
Expand Down

0 comments on commit 531fdc8

Please sign in to comment.