Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
Fixed paths for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 authored and soullivaneuh committed Nov 5, 2017
1 parent 09ee207 commit d45f0d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Test/AbstractWidgetTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,18 @@ protected function getTemplatePaths()
// this is an workaround for different composer requirements and different TwigBridge installation directories
$twigPaths = array_filter([
// symfony/twig-bridge (running from this bundle)
__DIR__.'/../vendor/symfony/twig-bridge/Resources/views/Form',
__DIR__.'/../../vendor/symfony/twig-bridge/Resources/views/Form',
// symfony/twig-bridge (running from other bundles)
__DIR__.'/../../../symfony/twig-bridge/Resources/views/Form',
__DIR__.'/../../../../symfony/twig-bridge/Resources/views/Form',
// NEXT_MAJOR: Remove BC hacks when dropping symfony 2.3 support
// symfony/twig-bridge 2.3 (running from this bundle)
__DIR__.'/../vendor/symfony/twig-bridge/Symfony/Bridge/Twig/Resources/views/Form',
__DIR__.'/../../vendor/symfony/twig-bridge/Symfony/Bridge/Twig/Resources/views/Form',
// symfony/twig-bridge 2.3 (running from other bundles)
__DIR__.'/../../../symfony/twig-bridge/Symfony/Bridge/Twig/Resources/views/Form',
__DIR__.'/../../../../symfony/twig-bridge/Symfony/Bridge/Twig/Resources/views/Form',
// symfony/symfony (running from this bundle)
__DIR__.'/../vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form',
__DIR__.'/../../vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form',
// symfony/symfony (running from other bundles)
__DIR__.'/../../../symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form',
__DIR__.'/../../../../symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form',
], 'is_dir');

$twigPaths[] = __DIR__.'/../Resources/views/Form';
Expand Down

0 comments on commit d45f0d2

Please sign in to comment.