Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
III-2331: Rename OrganizerController::getDistributionKeys() to ::getC…
Browse files Browse the repository at this point in the history
…ardSystems()
  • Loading branch information
bertramakers committed Oct 30, 2017
1 parent 22cde27 commit 53af95d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Controller/OrganizerControllerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function (Application $app) {

$controllers->get(
'/{organizerId}/cardSystems/',
'uitpas.organizer_controller:getDistributionKeys'
'uitpas.organizer_controller:getCardSystems'
);

return $controllers;
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/OrganizerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(\CultureFeed_Uitpas $uitpas)
* @param string $organizerId
* @return Response
*/
public function getDistributionKeys($organizerId)
public function getCardSystems($organizerId)
{
// Method is called getDistributionKeysForOrganizer() but returns
// card systems. (Historically it returned distribution keys.)
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/OrganizerControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function it_responds_with_a_list_of_card_systems_with_distribution_keys_f
]
);

$actualResponseContent = $this->controller->getDistributionKeys($organizerId)
$actualResponseContent = $this->controller->getCardSystems($organizerId)
->getContent();

$this->assertEquals($expectedResponseContent, $actualResponseContent);
Expand Down

0 comments on commit 53af95d

Please sign in to comment.