Skip to content

Commit ab9212b

Browse files
authored
Merge pull request #392 from symfony-cmf/cleanup-testing
cleanup unit testing
2 parents e34552e + c618c79 commit ab9212b

9 files changed

+8
-36
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
matrix:
1717
- SYMFONY_VERSION=3.2.*
1818
global:
19-
- SYMFONY_DEPRECATIONS_HELPER=231
19+
- SYMFONY_DEPRECATIONS_HELPER=4
2020
- SYMFONY_PHPUNIT_REMOVE="symfony/yaml" SYMFONY_PHPUNIT_DIR="./.phpunit" SYMFONY_PHPUNIT_VERSION=5.7
2121

2222
matrix:

tests/Unit/Controller/RedirectControllerTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Tests\Unit\Controller;
1313

1414
use Symfony\Cmf\Bundle\RoutingBundle\Controller\RedirectController;
15-
use Symfony\Cmf\Component\Routing\Test\CmfUnitTestCase;
1615
use Symfony\Component\Routing\RouterInterface;
1716

18-
class RedirectControllerTest extends CmfUnitTestCase
17+
class RedirectControllerTest extends \PHPUnit_Framework_TestCase
1918
{
2019
public function testConstructor()
2120
{

tests/Unit/DependencyInjection/CmfRoutingExtensionTest.php

-21
Original file line numberDiff line numberDiff line change
@@ -258,27 +258,6 @@ public function getBasePathsMergingTests()
258258
];
259259
}
260260

261-
public function testLegacyRouteBasepath()
262-
{
263-
$this->container->setParameter(
264-
'kernel.bundles',
265-
['CmfRoutingBundle' => true]
266-
);
267-
268-
$this->load([
269-
'dynamic' => [
270-
'enabled' => true,
271-
'persistence' => [
272-
'phpcr' => [
273-
'route_basepath' => '/cms/test',
274-
],
275-
],
276-
],
277-
]);
278-
279-
$this->assertContainerBuilderHasParameter('cmf_routing.dynamic.persistence.phpcr.route_basepaths', ['/cms/test']);
280-
}
281-
282261
public function testInitializerEnabled()
283262
{
284263
$this->container->setParameter(

tests/Unit/Doctrine/Orm/RouteProviderTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\Route;
1818
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\RouteProvider;
1919
use Symfony\Cmf\Component\Routing\Candidates\CandidatesInterface;
20-
use Symfony\Cmf\Component\Routing\Test\CmfUnitTestCase;
2120
use Symfony\Component\HttpFoundation\Request;
2221
use Symfony\Component\Routing\RouteCollection;
2322

24-
class RouteProviderTest extends CmfUnitTestCase
23+
class RouteProviderTest extends \PHPUnit_Framework_TestCase
2524
{
2625
/**
2726
* @var Route|\PHPUnit_Framework_MockObject_MockObject

tests/Unit/Doctrine/Phpcr/IdPrefixListenerTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\IdPrefixListener;
1717
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\PrefixCandidates;
1818
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route;
19-
use Symfony\Cmf\Component\Routing\Test\CmfUnitTestCase;
2019

21-
class IdPrefixListenerTest extends CmfUnitTestCase
20+
class IdPrefixListenerTest extends \PHPUnit_Framework_TestCase
2221
{
2322
/**
2423
* @var IdPrefixListener

tests/Unit/Doctrine/Phpcr/LocaleListenerTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\LocaleListener;
1818
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\PrefixCandidates;
1919
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route;
20-
use Symfony\Cmf\Component\Routing\Test\CmfUnitTestCase;
2120

22-
class LocaleListenerTest extends CmfUnitTestCase
21+
class LocaleListenerTest extends \PHPUnit_Framework_TestCase
2322
{
2423
/** @var LocaleListener */
2524
protected $listener;

tests/Unit/Doctrine/Phpcr/PrefixCandidatesTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder;
1818
use Doctrine\ODM\PHPCR\Translation\LocaleChooser\LocaleChooserInterface;
1919
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\PrefixCandidates;
20-
use Symfony\Cmf\Component\Routing\Test\CmfUnitTestCase;
2120
use Symfony\Component\HttpFoundation\Request;
2221

23-
class PrefixCandidatesTest extends CmfUnitTestCase
22+
class PrefixCandidatesTest extends \PHPUnit_Framework_TestCase
2423
{
2524
public function testAddPrefix()
2625
{

tests/Unit/Doctrine/Phpcr/RouteProviderTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@
2121
use PHPCR\Util\UUIDHelper;
2222
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\PrefixCandidates;
2323
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RouteProvider;
24-
use Symfony\Cmf\Component\Routing\Test\CmfUnitTestCase;
2524
use Symfony\Component\HttpFoundation\Request;
2625
use Symfony\Component\Routing\Route;
2726
use Symfony\Component\Routing\RouteCollection;
2827

29-
class RouteProviderTest extends CmfUnitTestCase
28+
class RouteProviderTest extends \PHPUnit_Framework_TestCase
3029
{
3130
/**
3231
* @var ManagerRegistry|\PHPUnit_Framework_MockObject_MockObject

tests/Unit/Routing/DynamicRouterTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Cmf\Component\Routing\Event\Events;
1616
use Symfony\Cmf\Component\Routing\Event\RouterMatchEvent;
1717
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
18-
use Symfony\Cmf\Component\Routing\Test\CmfUnitTestCase;
1918
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
2019
use Symfony\Component\HttpFoundation\Request;
2120
use Symfony\Component\HttpFoundation\RequestStack;
@@ -24,7 +23,7 @@
2423
use Symfony\Component\Routing\Matcher\UrlMatcherInterface;
2524
use Symfony\Component\Routing\RequestContext;
2625

27-
class DynamicRouterTest extends CmfUnitTestCase
26+
class DynamicRouterTest extends \PHPUnit_Framework_TestCase
2827
{
2928
protected $matcher;
3029
protected $generator;

0 commit comments

Comments
 (0)