Skip to content

Commit

Permalink
Fix test (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Sep 6, 2022
1 parent 22059a9 commit 19d0c91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Generator/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function setUp(): void
$this->filesystem->dumpFile($this->docsFile, '');
$this->filesystem->dumpFile($this->specificationFile, '');

$this->generator = new Generator($this->twig, $this->parser, $this->docsFolder);
$this->generator = new Generator($this->twig, $this->parser, $this->docsFolder, 'custom.html.twig');
}

protected function tearDown(): void
Expand Down Expand Up @@ -73,7 +73,7 @@ public function testGenerate(): void
$this->twig
->expects(self::once())
->method('render')
->with('@Swagger/SwaggerUi/index.html.twig', ['swagger_data' => $swaggerConfig])
->with('custom.html.twig', ['swagger_data' => $swaggerConfig])
->willReturn($docs)
;

Expand Down

0 comments on commit 19d0c91

Please sign in to comment.