Skip to content

Commit

Permalink
tests: add new assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Dec 12, 2024
1 parent 3ed604a commit 18a9066
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function testUpgradedFormsAreNotMigrated()
$campaign = Campaign::findByFormId($upgradedForm->id);

$this->assertNotNull($relationship);
$this->assertNotNull($campaign);
$this->assertEquals(0, DB::table('give_campaigns')->where('form_id', $upgradedForm->id)->count());
$this->assertEquals(1, DB::table('give_campaigns')->where('form_id', $newForm->id)->count());
$this->assertEquals(2, DB::table('give_campaign_forms')->where('campaign_id', $campaign->id)->count());
Expand Down

0 comments on commit 18a9066

Please sign in to comment.