Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix quick facts not being able to be saved #6912

Merged
merged 2 commits into from
Oct 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update ContactModuleQuickFactViewHelperTest.php
  • Loading branch information
djaiss committed Oct 2, 2023
commit 9a725a0b0a45c0694db8e64285638db64035e934
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,12 @@ public function it_gets_the_data_needed_for_the_view(): void
$array = ContactModuleQuickFactViewHelper::data($contact, $template);

$this->assertEquals(
3,
2,
count($array)
);

$this->assertArrayHasKey('template', $array);
$this->assertArrayHasKey('quick_facts', $array);
$this->assertArrayHasKey('url', $array);

$this->assertEquals(
[
'store' => env('APP_URL').'/vaults/'.$contact->vault->id.'/contacts/'.$contact->id.'/quickFacts/'.$template->id,
],
$array['url']
);
}

/** @test */
Expand Down