Skip to content

Commit 2b2460f

Browse files
Fix test
1 parent 215fe89 commit 2b2460f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

features/swagger/docs.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ Feature: Documentation support
110110
And the response should be in JSON
111111
And the header "Content-Type" should be equal to "application/json; charset=utf-8"
112112
And the JSON node "basePath" should be equal to "/"
113-
And the JSON node "foo" should be equal to "bar"
113+
And the JSON node "info.version" should be equal to "1.0.0"

tests/Bridge/Symfony/Bundle/Command/SwaggerCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testExecuteWithYamlVersion3()
8585
$expected = <<<YAML
8686
info:
8787
title: 'My Dummy API'
88-
version: 0.0.0
88+
version: 1.0.0
8989
description: |
9090
This is a test API.
9191
Made with love

tests/Fixtures/TestBundle/Serializer/Normalizer/OverrideDocumentationNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(NormalizerInterface $documentationNormalizer)
3030
public function normalize($object, $format = null, array $context = [])
3131
{
3232
$data = $this->documentationNormalizer->normalize($object, $format, $context);
33-
$data['foo'] = 'bar';
33+
$data['info']['version'] = '1.0.0';
3434

3535
return $data;
3636
}

0 commit comments

Comments
 (0)