Files
CRM/tests/Unit/Controllers/Contact/ContactAuditLogControllerTest.php
Kroonk a213a1dba0
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
refactor: replace custom CRM with Monica fork
2026-05-22 16:19:55 +02:00

27 lines
619 B
PHP

<?php
namespace Tests\Unit\Controllers\Contact;
use Tests\FeatureTestCase;
use App\Models\Contact\Contact;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ContactAuditLogControllerTest extends FeatureTestCase
{
use DatabaseTransactions;
/** @test */
public function it_gets_the_list_of_audit_logs_for_the_contact()
{
$user = $this->signin();
$contact = factory(Contact::class)->create([
'account_id' => $user->account_id,
]);
$response = $this->get("/people/{$contact->hashID()}/auditlogs");
$response->assertStatus(200);
}
}