Skip to content

Commit

Permalink
feat: updated associated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed7752 committed Mar 5, 2025
1 parent 659ae07 commit 475396d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ function (LicenceNoGenEntity $licenceNoGen) use (&$savedLicenceNoGen, $licenceNo
$this->assertEquals('name', $savedLicence->getOrganisation()->getName());
$this->assertEquals(OrganisationEntity::ORG_TYPE_OTHER, $savedLicence->getOrganisation()->getType()->getId());
$this->assertTrue($savedLicence->getOrganisation()->isUnlicensed());
$this->assertTrue($savedLicence->getOrganisation()->getIsMessagingFileUploadEnabled());

// assert licence record properties
$this->assertTrue($savedLicence->isPsv());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ function (OrganisationEntity $organisation) use (&$savedOrganisation) {
$result = $this->sut->handleCommand($command);
static::assertEquals(1, $result->getIds()['organisation']);
static::assertEquals('Organisation created successfully', $result->getMessages()[0]);
$this->assertTrue($savedOrganisation->getIsMessagingFileUploadEnabled());
}

public function testHandleCommandUpdatePartnershipOrOther()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ function (UserEntity $user) use (&$savedUser, $userId) {
$this->assertEquals(OrganisationEntity::ORG_TYPE_SOLE_TRADER, $savedOrg->getType()->getId());
$this->assertEquals($data['organisationName'], $savedOrg->getName());
$this->assertEquals('Y', $savedOrg->getAllowEmail());
$this->assertTrue($savedOrg->getIsMessagingFileUploadEnabled());

$this->assertInstanceOf(ContactDetailsEntity::class, $savedUser->getContactDetails());
$this->assertEquals(
Expand Down

0 comments on commit 475396d

Please sign in to comment.