-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating a service no longer generates a teamname urn
Prior to this change, a teamname urn would be created by sp-dashboard. This feature has been delegated to Invite. This change removes the code needed to create a new urn. See #1167
- Loading branch information
Showing
14 changed files
with
5 additions
and
167 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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
31 changes: 0 additions & 31 deletions
31
...ProviderDashboard/Infrastructure/DashboardBundle/Validator/Constraints/UniqueTeamName.php
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
...ashboard/Infrastructure/DashboardBundle/Validator/Constraints/UniqueTeamNameValidator.php
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -105,7 +105,6 @@ public function test_it_can_process_a_create_service_command() | |
|
||
$command = new CreateServiceCommand('920392e8-a1fc-4627-acb4-b1f215e11dcd'); | ||
$command->setName($service->getName()); | ||
$command->setTeamName($service->getTeamName()); | ||
$command->setTeamManagerEmail('[email protected]'); | ||
$command->setGuid($service->getGuid()); | ||
$command->setPrivacyQuestionsEnabled($service->isPrivacyQuestionsEnabled()); | ||
|
@@ -118,8 +117,6 @@ public function test_it_can_process_a_create_service_command() | |
$command->setContractSigned($service->getContractSigned()); | ||
$command->setInstitutionId($service->getInstitutionId()); | ||
|
||
// Expect the urn that invite returns to be set as the service team name | ||
$service->setTeamName($inviteUrn); | ||
$this->repository->shouldReceive('save')->with(IsEqual::equalTo($service))->once(); | ||
$this->repository->shouldReceive('isUnique')->andReturn(true)->once(); | ||
$this->commandHandler->handle($command); | ||
|
@@ -150,7 +147,6 @@ public function test_it_rejects_non_unique_create_service_command() | |
$this->expectException(InvalidArgumentException::class); | ||
$command = new CreateServiceCommand('4b0e422d-d0d0-4b9e-a521-fdd1ee5d2bad'); | ||
$command->setName('Foobar'); | ||
$command->setTeamName('team-foobar'); | ||
$command->setTeamManagerEmail('[email protected]'); | ||
$command->setGuid('30dd879c-ee2f-11db-8314-0800200c9a66'); | ||
$command->setProductionEntitiesEnabled(true); | ||
|
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
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