@@ -21,7 +21,7 @@ class RouteContentEnhancerTest extends CmfUnitTestCase
21
21
public function setUp ()
22
22
{
23
23
$ this ->document = $ this ->buildMock ('Symfony \\Cmf \\Component \\Routing \\Tests \\Enhancer \\RouteObject ' ,
24
- array ('getRouteContent ' , 'getRouteDefaults ' , 'getUrl ' ));
24
+ array ('getContent ' , 'getRouteDefaults ' , 'getUrl ' ));
25
25
26
26
$ this ->mapper = new RouteContentEnhancer (RouteObjectInterface::ROUTE_OBJECT , '_content ' );
27
27
@@ -32,7 +32,7 @@ public function testContent()
32
32
{
33
33
$ targetDocument = new TargetDocument ();
34
34
$ this ->document ->expects ($ this ->once ())
35
- ->method ('getRouteContent ' )
35
+ ->method ('getContent ' )
36
36
->will ($ this ->returnValue ($ targetDocument ));
37
37
38
38
$ defaults = array (RouteObjectInterface::ROUTE_OBJECT => $ this ->document );
@@ -44,7 +44,7 @@ public function testContent()
44
44
public function testFieldAlreadyThere ()
45
45
{
46
46
$ this ->document ->expects ($ this ->never ())
47
- ->method ('getRouteContent ' )
47
+ ->method ('getContent ' )
48
48
;
49
49
50
50
$ defaults = array (RouteObjectInterface::ROUTE_OBJECT => $ this ->document , '_content ' => 'foo ' );
@@ -55,7 +55,7 @@ public function testFieldAlreadyThere()
55
55
public function testNoContent ()
56
56
{
57
57
$ this ->document ->expects ($ this ->once ())
58
- ->method ('getRouteContent ' )
58
+ ->method ('getContent ' )
59
59
->will ($ this ->returnValue (null ));
60
60
61
61
$ defaults = array (RouteObjectInterface::ROUTE_OBJECT => $ this ->document );
0 commit comments