16
16
use Symfony \Component \Routing \Exception \MethodNotAllowedException ;
17
17
use Symfony \Component \Routing \Exception \ResourceNotFoundException ;
18
18
use Symfony \Component \Routing \Exception \RouteNotFoundException ;
19
+ use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
19
20
use Symfony \Component \Routing \Matcher \RequestMatcherInterface ;
20
21
use Symfony \Component \Routing \RequestContext ;
21
22
use Symfony \Component \Routing \RouteCollection ;
@@ -506,13 +507,13 @@ public function testGenerate()
506
507
$ high
507
508
->expects ($ this ->once ())
508
509
->method ('generate ' )
509
- ->with ($ name , $ parameters , false )
510
+ ->with ($ name , $ parameters , UrlGeneratorInterface:: ABSOLUTE_PATH )
510
511
->will ($ this ->throwException (new RouteNotFoundException ()))
511
512
;
512
513
$ low
513
514
->expects ($ this ->once ())
514
515
->method ('generate ' )
515
- ->with ($ name , $ parameters , false )
516
+ ->with ($ name , $ parameters , UrlGeneratorInterface:: ABSOLUTE_PATH )
516
517
->will ($ this ->returnValue ($ url ))
517
518
;
518
519
$ lower
@@ -539,12 +540,12 @@ public function testGenerateNotFound()
539
540
$ high
540
541
->expects ($ this ->once ())
541
542
->method ('generate ' )
542
- ->with ($ name , $ parameters , false )
543
+ ->with ($ name , $ parameters , UrlGeneratorInterface:: ABSOLUTE_PATH )
543
544
->will ($ this ->throwException (new RouteNotFoundException ()))
544
545
;
545
546
$ low ->expects ($ this ->once ())
546
547
->method ('generate ' )
547
- ->with ($ name , $ parameters , false )
548
+ ->with ($ name , $ parameters , UrlGeneratorInterface:: ABSOLUTE_PATH )
548
549
->will ($ this ->throwException (new RouteNotFoundException ()))
549
550
;
550
551
$ this ->router ->add ($ low , 10 );
@@ -593,7 +594,7 @@ public function testGenerateObjectNotFoundVersatile()
593
594
;
594
595
$ chainedRouter ->expects ($ this ->once ())
595
596
->method ('generate ' )
596
- ->with ($ name , $ parameters , false )
597
+ ->with ($ name , $ parameters , UrlGeneratorInterface:: ABSOLUTE_PATH )
597
598
->will ($ this ->throwException (new RouteNotFoundException ()))
598
599
;
599
600
$ chainedRouter ->expects ($ this ->once ())
@@ -627,7 +628,7 @@ public function testGenerateObjectName()
627
628
$ chainedRouter
628
629
->expects ($ this ->once ())
629
630
->method ('generate ' )
630
- ->with ($ name , $ parameters , false )
631
+ ->with ($ name , $ parameters , UrlGeneratorInterface:: ABSOLUTE_PATH )
631
632
->will ($ this ->returnValue ($ name ))
632
633
;
633
634
0 commit comments