@@ -96,7 +96,7 @@ public function testGenerateEmptyRouteString()
96
96
97
97
public function testGenerateRouteMultilang ()
98
98
{
99
- $ route_en = $ this ->buildMock ('Symfony \\Cmf \\Component \\Routing \\Tests \\Routing \\RouteMock ' , array ('getDefaults ' , 'compile ' , 'getRouteContent ' ));
99
+ $ route_en = $ this ->buildMock ('Symfony \\Cmf \\Component \\Routing \\Tests \\Routing \\RouteMock ' , array ('getDefaults ' , 'compile ' , 'getContent ' ));
100
100
$ route_en ->setLocale ('en ' );
101
101
$ route_de = $ this ->routeDocument ;
102
102
$ route_de ->setLocale ('de ' );
@@ -106,7 +106,7 @@ public function testGenerateRouteMultilang()
106
106
->will ($ this ->returnValue (array ($ route_en , $ route_de )))
107
107
;
108
108
$ route_en ->expects ($ this ->once ())
109
- ->method ('getRouteContent ' )
109
+ ->method ('getContent ' )
110
110
->will ($ this ->returnValue ($ this ->contentDocument ))
111
111
;
112
112
$ route_en ->expects ($ this ->never ())
@@ -122,7 +122,7 @@ public function testGenerateRouteMultilang()
122
122
123
123
public function testGenerateRouteMultilangLocaleNomatch ()
124
124
{
125
- $ route_en = $ this ->buildMock ('Symfony \\Cmf \\Component \\Routing \\Tests \\Routing \\RouteMock ' , array ('getDefaults ' , 'compile ' , 'getRouteContent ' ));
125
+ $ route_en = $ this ->buildMock ('Symfony \\Cmf \\Component \\Routing \\Tests \\Routing \\RouteMock ' , array ('getDefaults ' , 'compile ' , 'getContent ' ));
126
126
$ route_en ->setLocale ('en ' );
127
127
$ route_de = $ this ->routeDocument ;
128
128
$ route_de ->setLocale ('de ' );
@@ -132,7 +132,7 @@ public function testGenerateRouteMultilangLocaleNomatch()
132
132
->will ($ this ->returnValue (array ($ route_en , $ route_de )))
133
133
;
134
134
$ route_en ->expects ($ this ->once ())
135
- ->method ('getRouteContent ' )
135
+ ->method ('getContent ' )
136
136
->will ($ this ->returnValue ($ this ->contentDocument ))
137
137
;
138
138
$ route_en ->expects ($ this ->once ())
@@ -148,7 +148,7 @@ public function testGenerateRouteMultilangLocaleNomatch()
148
148
149
149
public function testGenerateNoncmfRouteMultilang ()
150
150
{
151
- $ route_en = $ this ->buildMock ('Symfony \\Component \\Routing \\Route ' , array ('getDefaults ' , 'compile ' , 'getRouteContent ' ));
151
+ $ route_en = $ this ->buildMock ('Symfony \\Component \\Routing \\Route ' , array ('getDefaults ' , 'compile ' , 'getContent ' ));
152
152
153
153
$ route_en ->expects ($ this ->once ())
154
154
->method ('compile ' )
@@ -161,7 +161,7 @@ public function testGenerateNoncmfRouteMultilang()
161
161
public function testGenerateRoutenameMultilang ()
162
162
{
163
163
$ name = 'foo/bar ' ;
164
- $ route_en = $ this ->buildMock ('Symfony \\Cmf \\Component \\Routing \\Tests \\Routing \\RouteMock ' , array ('getDefaults ' , 'compile ' , 'getRouteContent ' ));
164
+ $ route_en = $ this ->buildMock ('Symfony \\Cmf \\Component \\Routing \\Tests \\Routing \\RouteMock ' , array ('getDefaults ' , 'compile ' , 'getContent ' ));
165
165
$ route_en ->setLocale ('en ' );
166
166
$ route_de = $ this ->routeDocument ;
167
167
$ route_de ->setLocale ('de ' );
@@ -176,7 +176,7 @@ public function testGenerateRoutenameMultilang()
176
176
->will ($ this ->returnValue (array ($ route_en , $ route_de )))
177
177
;
178
178
$ route_en ->expects ($ this ->once ())
179
- ->method ('getRouteContent ' )
179
+ ->method ('getContent ' )
180
180
->will ($ this ->returnValue ($ this ->contentDocument ))
181
181
;
182
182
$ route_en ->expects ($ this ->never ())
0 commit comments