Skip to content

Commit

Permalink
LPAStore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdavis2001 committed Nov 14, 2024
1 parent a4ac8c9 commit d780c0b
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions service-api/app/test/AppTest/Entity/LpaStoreTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?php

declare(strict_types=1);

namespace AppTest\Entity;

use App\Entity\LpaStore\LpaStore;
use App\Entity\LpaStore\LpaStoreAttorney;
use App\Entity\LpaStore\LpaStoreDonor;
use DateTimeImmutable;
use DateTimeZone;
use App\Enum\LpaType;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;

class LpaStoreTest extends TestCase
{
#[Test]
public function it_can_be_instantiated(): void
{
$sut = new LpaStore(
applicationHasGuidance: null,
applicationHasRestrictions: null,
applicationType: null,
attorneyActDecisions: null,
attorneys: [
new LpaStoreAttorney(
addressLine1: null,
addressLine2: null,
addressLine3: null,
country: null,
county: null,
dob: new DateTimeImmutable('1962-4-18', new DateTimeZone('UTC')),
email: null,
firstnames: null,
name: null,
postcode: null,
surname: null,
systemStatus: null,
town: null,
type: null,
uId: '700000000012',
),
],
caseSubtype: LpaType::PERSONAL_WELFARE,
channel: 'online',
dispatchDate: null,
donor: new LpaStoreDonor(
addressLine1: null,
addressLine2: null,
addressLine3: null,
country: null,
county: null,
dob: new DateTimeImmutable('1962-4-18', new DateTimeZone('UTC')),
email: null,
firstnames: null,
name: null,
postcode: null,
surname: null,
systemStatus: null,
town: null,
type: null,
uId: '700000000012',
),
hasSeveranceWarning: null,
invalidDate: null,
lifeSustainingTreatment: null,
lpaDonorSignatureDate: null,
lpaIsCleansed: null,
onlineLpaId: null,
receiptDate: null,
registrationDate: null,
rejectedDate: null,
replacementAttorneys: [],
status: null,
statusDate: null,
trustCorporations: [],
uId: '700000000001',
withdrawnDate: null,
);

$this->assertInstanceOf(LpaStore::class, $sut);
}
}

0 comments on commit d780c0b

Please sign in to comment.