mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Fix tests
This commit is contained in:
parent
dc1f11a46f
commit
e8d4afd1af
@ -25,7 +25,13 @@ class ControllersTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testSwaggerUiControllerInstanciation()
|
public function testSwaggerUiControllerInstanciation()
|
||||||
{
|
{
|
||||||
$controller = new SwaggerUiController(new ApiDocGenerator([], []), $this->createMock('Twig_Environment'));
|
if (class_exists('Twig_Environment')) {
|
||||||
|
$twigMock = $this->createMock('Twig_Environment');
|
||||||
|
} else {
|
||||||
|
$twigMock = $this->createMock('Twig\Environment');
|
||||||
|
}
|
||||||
|
|
||||||
|
$controller = new SwaggerUiController(new ApiDocGenerator([], []), $twigMock);
|
||||||
$controller(new Request());
|
$controller(new Request());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user