chore: remove old method to delete all information about a contact (#3535)

This commit is contained in:
Regis Freyd
2020-02-01 13:40:34 -05:00
committed by GitHub
parent ad11e47625
commit a2d9eb7acc
4 changed files with 2 additions and 48 deletions
-15
View File
@@ -816,21 +816,6 @@ class ContactTest extends FeatureTestCase
);
}
/** @test */
public function it_deletes_everything_about_the_contact()
{
$account = factory(Account::class)->create([]);
$contact = factory(Contact::class)->create(['account_id' => $account->id]);
$contact->save();
$id = $contact->id;
$this->assertEquals(1, Contact::where('id', $id)->count());
$contact->deleteEverything();
$this->assertEquals(0, Contact::where('id', $id)->count());
}
/** @test */
public function it_updates_stay_in_touch_frequency()
{