Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 54cb471

Browse filesBrowse files
committed
do not mock removed getPublicDir() method
1 parent 123fc62 commit 54cb471
Copy full SHA for 54cb471

File tree

Expand file treeCollapse file tree

1 file changed

+1
-14
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-14
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/KernelTest.php
+1-14Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.