File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Symfony \Cmf \Bundle \RoutingBundle \Tests \Functional \Controller ;
4
4
5
+ use PHPCR \Util \PathHelper ;
5
6
use Symfony \Cmf \Bundle \RoutingBundle \Tests \Functional \BaseTestCase ;
6
7
7
8
use Symfony \Component \HttpFoundation \RedirectResponse ;
@@ -21,7 +22,7 @@ class RedirectControllerTest extends BaseTestCase
21
22
22
23
public static function setupBeforeClass (array $ options = array (), $ routebase = null )
23
24
{
24
- parent ::setupBeforeClass (array (), basename (self ::ROUTE_ROOT ));
25
+ parent ::setupBeforeClass (array (), PathHelper:: getNodeName (self ::ROUTE_ROOT ));
25
26
$ router = self ::$ kernel ->getContainer ()->get ('router ' );
26
27
self ::$ controller = new RedirectController ($ router );
27
28
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Symfony \Cmf \Bundle \RoutingBundle \Tests \Functional \Document ;
4
4
5
+ use PHPCR \Util \PathHelper ;
5
6
use Symfony \Cmf \Bundle \RoutingBundle \Document \Route ;
6
7
use Symfony \Cmf \Bundle \RoutingBundle \Document \RedirectRoute ;
7
8
@@ -13,7 +14,7 @@ class RedirectRouteTest extends BaseTestCase
13
14
14
15
public static function setupBeforeClass (array $ options = array (), $ routebase = null )
15
16
{
16
- parent ::setupBeforeClass (array (), basename (self ::ROUTE_ROOT ));
17
+ parent ::setupBeforeClass (array (), PathHelper:: getNodeName (self ::ROUTE_ROOT ));
17
18
}
18
19
19
20
public function testRedirectDoctrine ()
Original file line number Diff line number Diff line change 3
3
namespace Symfony \Cmf \Bundle \RoutingBundle \Tests \Functional \Document ;
4
4
5
5
use Doctrine \ODM \PHPCR \Document \Generic ;
6
+ use PHPCR \Util \PathHelper ;
6
7
use Symfony \Component \HttpFoundation \Request ;
7
8
8
9
use Symfony \Cmf \Bundle \RoutingBundle \Document \Route ;
@@ -19,7 +20,7 @@ class RouteRepositoryTest extends BaseTestCase
19
20
20
21
public static function setupBeforeClass (array $ options = array (), $ routebase = null )
21
22
{
22
- parent ::setupBeforeClass (array (), basename (self ::ROUTE_ROOT ));
23
+ parent ::setupBeforeClass (array (), PathHelper:: getNodeName (self ::ROUTE_ROOT ));
23
24
self ::$ repository = self ::$ kernel ->getContainer ()->get ('cmf_routing.route_provider ' );
24
25
}
25
26
Original file line number Diff line number Diff line change 2
2
3
3
namespace Symfony \Cmf \Bundle \RoutingBundle \Tests \Functional \Document ;
4
4
5
+ use PHPCR \Util \PathHelper ;
5
6
use Symfony \Cmf \Bundle \RoutingBundle \Document \Route ;
6
7
7
8
use Symfony \Cmf \Bundle \RoutingBundle \Tests \Functional \BaseTestCase ;
@@ -12,7 +13,7 @@ class RouteTest extends BaseTestCase
12
13
13
14
public static function setupBeforeClass (array $ options = array (), $ routebase = null )
14
15
{
15
- parent ::setupBeforeClass (array (), basename (self ::ROUTE_ROOT ));
16
+ parent ::setupBeforeClass (array (), PathHelper:: getNodeName (self ::ROUTE_ROOT ));
16
17
}
17
18
18
19
public function testPersist ()
Original file line number Diff line number Diff line change 2
2
3
3
namespace Symfony \Cmf \Bundle \RoutingBundle \Tests \Functional \Routing ;
4
4
5
+ use PHPCR \Util \PathHelper ;
5
6
use Symfony \Component \HttpFoundation \Request ;
6
7
7
8
use Symfony \Cmf \Bundle \RoutingBundle \Document \Route ;
@@ -29,7 +30,7 @@ class DynamicRouterTest extends BaseTestCase
29
30
30
31
public static function setupBeforeClass (array $ options = array (), $ routebase = null )
31
32
{
32
- parent ::setupBeforeClass (array (), basename (self ::ROUTE_ROOT ));
33
+ parent ::setupBeforeClass (array (), PathHelper:: getNodeName (self ::ROUTE_ROOT ));
33
34
self ::$ router = self ::$ kernel ->getContainer ()->get ('router ' );
34
35
35
36
$ root = self ::$ dm ->find (null , self ::ROUTE_ROOT );
You can’t perform that action at this time.
0 commit comments