Skip to content

Commit

Permalink
Merge pull request #7296 from lchrusciel/api-coherence
Browse files Browse the repository at this point in the history
[API] Keep resource name coherent
  • Loading branch information
pjedrzejewski committed Jan 20, 2017
2 parents 04dfd46 + e3aa0a5 commit 1cb675a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Controller/ChannelApiTest.php
Expand Up @@ -46,7 +46,7 @@ public function it_allows_to_get_channels_list()
$this->loadFixturesFromFile('authentication/api_administrator.yml');
$channelData = $this->loadFixturesFromFile('resources/channels.yml');

$this->client->request('GET', '/api/v1/channels/'.$channelData['channel-web']->getId(), [], [], static::$authorizedHeaderWithContentType);
$this->client->request('GET', '/api/v1/channels/'.$channelData['channel_web']->getId(), [], [], static::$authorizedHeaderWithContentType);

$response = $this->client->getResponse();
$this->assertResponse($response, 'channel/show_response', Response::HTTP_OK);
Expand Down
2 changes: 1 addition & 1 deletion tests/DataFixtures/ORM/resources/channels.yml
@@ -1,5 +1,5 @@
Sylius\Component\Core\Model\Channel:
channel-web:
channel_web:
code: "WEB"
name: "Web Channel"
hostname: "localhost"
Expand Down

0 comments on commit 1cb675a

Please sign in to comment.