-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4ac8c9
commit d780c0b
Showing
1 changed file
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |