Skip to content

Commit

Permalink
fix test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Oct 18, 2021
1 parent 82b0db7 commit eb1108d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/ReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testSymfonyYamlBugHunt()
}
}

$openApiFile = __DIR__ . '/../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml';
$openApiFile = __DIR__ . '/../vendor/oai/openapi-specification-3.0/examples/v3.0/uspto.yaml';
$openapi = \cebe\openapi\Reader::readFromYamlFile($openApiFile);

$inlineYamlExample = $openapi->paths['/']->get->responses['200']->content['application/json']->example;
Expand Down
14 changes: 7 additions & 7 deletions tests/spec/OpenApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testEmpty()

public function testReadPetStore()
{
$openApiFile = __DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/petstore.yaml';
$openApiFile = __DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/petstore.yaml';

$yaml = Yaml::parse(file_get_contents($openApiFile));
$openapi = new OpenApi($yaml);
Expand Down Expand Up @@ -94,12 +94,12 @@ public function specProvider()
// examples from https://github.com/OAI/OpenAPI-Specification/tree/master/examples/v3.0
$oaiExamples = [
// TODO symfony/yaml can not read this file!?
// __DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/api-with-examples.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/callback-example.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/link-example.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/petstore.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/petstore-expanded.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml',
// __DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/api-with-examples.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/callback-example.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/link-example.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/petstore.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/petstore-expanded.yaml',
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/uspto.yaml',
];

// examples from https://github.com/Mermade/openapi3-examples
Expand Down

0 comments on commit eb1108d

Please sign in to comment.