Skip to content

Commit 08f2813

Browse files
committed
#11652 [HttpKernel] Remove tests for deprecated method Kernel::isClassInActiveBundle
1 parent f71e3bc commit 08f2813

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

src/Symfony/Component/HttpKernel/Tests/Fixtures/FooBarBundle.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

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

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\HttpFoundation\Response;
1818
use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForTest;
1919
use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForOverrideName;
20-
use Symfony\Component\HttpKernel\Tests\Fixtures\FooBarBundle;
2120

2221
class KernelTest extends \PHPUnit_Framework_TestCase
2322
{
@@ -279,51 +278,6 @@ public function doStuff()
279278
$this->assertEquals($expected, $output);
280279
}
281280

282-
/**
283-
* @deprecated Deprecated since version 2.6, to be removed in 3.0.
284-
*/
285-
public function testIsClassInActiveBundleFalse()
286-
{
287-
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
288-
289-
$this->assertFalse($kernel->isClassInActiveBundle('Not\In\Active\Bundle'));
290-
}
291-
292-
/**
293-
* @deprecated Deprecated since version 2.6, to be removed in 3.0.
294-
*/
295-
public function testIsClassInActiveBundleFalseNoNamespace()
296-
{
297-
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
298-
299-
$this->assertFalse($kernel->isClassInActiveBundle('NotNamespacedClass'));
300-
}
301-
302-
/**
303-
* @deprecated Deprecated since version 2.6, to be removed in 3.0.
304-
*/
305-
public function testIsClassInActiveBundleTrue()
306-
{
307-
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
308-
309-
$this->assertTrue($kernel->isClassInActiveBundle(__NAMESPACE__.'\Fixtures\FooBarBundle\SomeClass'));
310-
}
311-
312-
/**
313-
* @deprecated Deprecated since version 2.6, to be removed in 3.0.
314-
*/
315-
protected function getKernelMockForIsClassInActiveBundleTest()
316-
{
317-
$bundle = new FooBarBundle();
318-
319-
$kernel = $this->getKernel(array('getBundles'));
320-
$kernel->expects($this->once())
321-
->method('getBundles')
322-
->will($this->returnValue(array($bundle)));
323-
324-
return $kernel;
325-
}
326-
327281
public function testGetRootDir()
328282
{
329283
$kernel = new KernelForTest('test', true);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy