File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
app/code/Magento/AdminAdobeIms/Test/Unit/Service Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -43,27 +43,15 @@ protected function setUp(): void
43
43
);
44
44
}
45
45
46
- public function testCheckOrganizationAllocationReturnsTrueWhenProfileAssignedToOrg ()
46
+ public function testCheckOrganizationMembershipThrowsExceptionWhenProfileNotAssignedToOrg ()
47
47
{
48
48
$ this ->adminImsConfigMock
49
49
->method ('getOrganizationId ' )
50
- ->willReturn (self ::VALID_ORGANIZATION_ID );
51
-
52
- $ this ->assertEquals (
53
- true ,
54
- $ this ->imsOrganizationService ->checkOrganizationAllocation ('my_token ' )
55
- );
56
- }
57
-
58
- public function testCheckOrganizationAllocationThrowsExceptionWhenProfileNotAssignedToOrg ()
59
- {
60
- $ this ->adminImsConfigMock
61
- ->method ('getOrganizationId ' )
62
- ->willReturn ('' );
50
+ ->willReturn (self ::INVALID_ORGANIZATION_ID );
63
51
64
52
$ this ->expectException (AdobeImsOrganizationAuthorizationException::class);
65
- $ this ->expectExceptionMessage ('User is not assigned to defined organization. ' );
53
+ $ this ->expectExceptionMessage ('Can \' t check user membership in organization. ' );
66
54
67
- $ this ->imsOrganizationService ->checkOrganizationAllocation ('my_token ' );
55
+ $ this ->imsOrganizationService ->checkOrganizationMembership ('my_token ' );
68
56
}
69
57
}
You can’t perform that action at this time.
0 commit comments