Skip to content

Commit

Permalink
do not mock removed getPublicDir() method
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Aug 26, 2019
1 parent 123fc62 commit 54cb471
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/Symfony/Component/HttpKernel/Tests/KernelTest.php
Expand Up @@ -21,7 +21,6 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
use Symfony\Component\HttpKernel\DependencyInjection\ResettableServicePass;
use Symfony\Component\HttpKernel\DependencyInjection\ServicesResetter;
use Symfony\Component\HttpKernel\HttpKernel;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForOverrideName;
Expand Down Expand Up @@ -626,7 +625,7 @@ protected function getBundle($dir = null, $parent = null, $className = null, $bu
{
$bundle = $this
->getMockBuilder('Symfony\Component\HttpKernel\Bundle\BundleInterface')
->setMethods(['getPath', 'getPublicDir', 'getParent', 'getName'])
->setMethods(['getPath', 'getName'])
->disableOriginalConstructor()
;

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

$bundle
->expects($this->any())
->method('getPublicDir')
->willReturn('Resources/public')
;

$bundle
->expects($this->any())
->method('getParent')
->willReturn($parent)
;

return $bundle;
}

Expand Down

0 comments on commit 54cb471

Please sign in to comment.