Skip to content

Commit db9549d

Browse files
committed
minor #33336 [HttpKernel] do not mock removed getPublicDir() method (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpKernel] do not mock removed getPublicDir() method | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 54cb471 do not mock removed getPublicDir() method
2 parents d887a0d + 54cb471 commit db9549d

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/Symfony/Component/HttpKernel/Tests/KernelTest.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
2222
use Symfony\Component\HttpKernel\DependencyInjection\ResettableServicePass;
2323
use Symfony\Component\HttpKernel\DependencyInjection\ServicesResetter;
24-
use Symfony\Component\HttpKernel\HttpKernel;
2524
use Symfony\Component\HttpKernel\HttpKernelInterface;
2625
use Symfony\Component\HttpKernel\Kernel;
2726
use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForOverrideName;
@@ -626,7 +625,7 @@ protected function getBundle($dir = null, $parent = null, $className = null, $bu
626625
{
627626
$bundle = $this
628627
->getMockBuilder('Symfony\Component\HttpKernel\Bundle\BundleInterface')
629-
->setMethods(['getPath', 'getPublicDir', 'getParent', 'getName'])
628+
->setMethods(['getPath', 'getName'])
630629
->disableOriginalConstructor()
631630
;
632631

@@ -648,18 +647,6 @@ protected function getBundle($dir = null, $parent = null, $className = null, $bu
648647
->willReturn($dir)
649648
;
650649

651-
$bundle
652-
->expects($this->any())
653-
->method('getPublicDir')
654-
->willReturn('Resources/public')
655-
;
656-
657-
$bundle
658-
->expects($this->any())
659-
->method('getParent')
660-
->willReturn($parent)
661-
;
662-
663650
return $bundle;
664651
}
665652

0 commit comments

Comments
 (0)