Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PHPUnit 10] Use TestCase suffix for abstract tests in /Tests/ #49253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
use Symfony\Component\Form\Exception\RuntimeException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Forms;
use Symfony\Component\Form\Tests\Extension\Core\Type\BaseTypeTest;
use Symfony\Component\Form\Tests\Extension\Core\Type\BaseTypeTestCase;
use Symfony\Component\Form\Tests\Extension\Core\Type\FormTypeTest;
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
use Symfony\Component\OptionsResolver\Exception\MissingOptionsException;

class EntityTypeTest extends BaseTypeTest
class EntityTypeTest extends BaseTypeTestCase
{
public const TESTED_TYPE = 'Symfony\Bridge\Doctrine\Form\Type\EntityType';

Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Bridge/Doctrine/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"symfony/cache": "^5.4|^6.0",
"symfony/config": "^5.4|^6.0",
"symfony/dependency-injection": "^6.2",
"symfony/form": "^5.4.9|^6.0.9",
"symfony/form": "^6.3",
"symfony/http-kernel": "^6.2",
"symfony/messenger": "^5.4|^6.0",
"symfony/doctrine-messenger": "^5.4|^6.0",
Expand Down Expand Up @@ -57,7 +57,7 @@
"phpunit/phpunit": "<5.4.3",
"symfony/cache": "<5.4",
"symfony/dependency-injection": "<6.2",
"symfony/form": "<5.4",
"symfony/form": "<6.3",
"symfony/http-foundation": "<6.3",
"symfony/http-kernel": "<6.2",
"symfony/messenger": "<5.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Bridge\Twig\Tests\Extension;

abstract class AbstractBootstrap3HorizontalLayoutTest extends AbstractBootstrap3LayoutTest
abstract class AbstractBootstrap3HorizontalLayoutTestCase extends AbstractBootstrap3LayoutTestCase
{
public function testLabelOnForm()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

use Symfony\Component\Form\Extension\Core\Type\PercentType;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\Tests\AbstractLayoutTest;
use Symfony\Component\Form\Tests\AbstractLayoutTestCase;

abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
abstract class AbstractBootstrap3LayoutTestCase extends AbstractLayoutTestCase
{
public function testLabelOnForm()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @author Hidde Wieringa <[email protected]>
*/
abstract class AbstractBootstrap4HorizontalLayoutTest extends AbstractBootstrap4LayoutTest
abstract class AbstractBootstrap4HorizontalLayoutTestCase extends AbstractBootstrap4LayoutTestCase
{
public function testRow()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @author Hidde Wieringa <[email protected]>
*/
abstract class AbstractBootstrap4LayoutTest extends AbstractBootstrap3LayoutTest
abstract class AbstractBootstrap4LayoutTestCase extends AbstractBootstrap3LayoutTestCase
{
public function testRow()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @author Romain Monteil <[email protected]>
*/
abstract class AbstractBootstrap5HorizontalLayoutTest extends AbstractBootstrap5LayoutTest
abstract class AbstractBootstrap5HorizontalLayoutTestCase extends AbstractBootstrap5LayoutTestCase
{
public function testRow()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*
* @author Romain Monteil <[email protected]>
*/
abstract class AbstractBootstrap5LayoutTest extends AbstractBootstrap4LayoutTest
abstract class AbstractBootstrap5LayoutTestCase extends AbstractBootstrap4LayoutTestCase
{
public function testRow()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Twig\Environment;
use Twig\Loader\FilesystemLoader;

class FormExtensionBootstrap3HorizontalLayoutTest extends AbstractBootstrap3HorizontalLayoutTest
class FormExtensionBootstrap3HorizontalLayoutTest extends AbstractBootstrap3HorizontalLayoutTestCase
{
use RuntimeLoaderProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Twig\Environment;
use Twig\Loader\FilesystemLoader;

class FormExtensionBootstrap3LayoutTest extends AbstractBootstrap3LayoutTest
class FormExtensionBootstrap3LayoutTest extends AbstractBootstrap3LayoutTestCase
{
use RuntimeLoaderProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* @author Hidde Wieringa <[email protected]>
*/
class FormExtensionBootstrap4HorizontalLayoutTest extends AbstractBootstrap4HorizontalLayoutTest
class FormExtensionBootstrap4HorizontalLayoutTest extends AbstractBootstrap4HorizontalLayoutTestCase
{
use RuntimeLoaderProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* @author Hidde Wieringa <[email protected]>
*/
class FormExtensionBootstrap4LayoutTest extends AbstractBootstrap4LayoutTest
class FormExtensionBootstrap4LayoutTest extends AbstractBootstrap4LayoutTestCase
{
use RuntimeLoaderProvider;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* @author Romain Monteil <[email protected]>
*/
class FormExtensionBootstrap5HorizontalLayoutTest extends AbstractBootstrap5HorizontalLayoutTest
class FormExtensionBootstrap5HorizontalLayoutTest extends AbstractBootstrap5HorizontalLayoutTestCase
{
use RuntimeLoaderProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @author Romain Monteil <[email protected]>
*/
class FormExtensionBootstrap5LayoutTest extends AbstractBootstrap5LayoutTest
class FormExtensionBootstrap5LayoutTest extends AbstractBootstrap5LayoutTestCase
{
use RuntimeLoaderProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
use Symfony\Component\Form\ChoiceList\View\ChoiceView;
use Symfony\Component\Form\FormRenderer;
use Symfony\Component\Form\FormView;
use Symfony\Component\Form\Tests\AbstractDivLayoutTest;
use Symfony\Component\Form\Tests\AbstractDivLayoutTestCase;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
use Twig\Environment;
use Twig\Loader\FilesystemLoader;

class FormExtensionDivLayoutTest extends AbstractDivLayoutTest
class FormExtensionDivLayoutTest extends AbstractDivLayoutTestCase
{
use RuntimeLoaderProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
use Symfony\Bridge\Twig\Tests\Extension\Fixtures\StubTranslator;
use Symfony\Component\Form\FormRenderer;
use Symfony\Component\Form\FormView;
use Symfony\Component\Form\Tests\AbstractTableLayoutTest;
use Symfony\Component\Form\Tests\AbstractTableLayoutTestCase;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
use Twig\Environment;
use Twig\Loader\FilesystemLoader;

class FormExtensionTableLayoutTest extends AbstractTableLayoutTest
class FormExtensionTableLayoutTest extends AbstractTableLayoutTestCase
{
use RuntimeLoaderProvider;

Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Bridge/Twig/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"symfony/asset": "^5.4|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/finder": "^5.4|^6.0",
"symfony/form": "^6.1",
"symfony/form": "^6.3",
"symfony/html-sanitizer": "^6.1",
"symfony/http-foundation": "^5.4|^6.0",
"symfony/http-kernel": "^6.2",
Expand Down Expand Up @@ -57,7 +57,7 @@
"phpdocumentor/reflection-docblock": "<3.2.2",
"phpdocumentor/type-resolver": "<1.4.0",
"symfony/console": "<5.4",
"symfony/form": "<6.1",
"symfony/form": "<6.3",
"symfony/http-foundation": "<5.4",
"symfony/http-kernel": "<6.2",
"symfony/mime": "<6.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;

abstract class AbstractDescriptorTest extends TestCase
abstract class AbstractDescriptorTestCase extends TestCase
{
private $colSize;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Symfony\Bundle\FrameworkBundle\Console\Descriptor\JsonDescriptor;

class JsonDescriptorTest extends AbstractDescriptorTest
class JsonDescriptorTest extends AbstractDescriptorTestCase
{
protected static function getDescriptor()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Symfony\Bundle\FrameworkBundle\Console\Descriptor\MarkdownDescriptor;

class MarkdownDescriptorTest extends AbstractDescriptorTest
class MarkdownDescriptorTest extends AbstractDescriptorTestCase
{
protected static function getDescriptor()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
use Symfony\Component\Routing\Route;

class TextDescriptorTest extends AbstractDescriptorTest
class TextDescriptorTest extends AbstractDescriptorTestCase
{
private static $fileLinkFormatter = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Symfony\Bundle\FrameworkBundle\Console\Descriptor\XmlDescriptor;

class XmlDescriptorTest extends AbstractDescriptorTest
class XmlDescriptorTest extends AbstractDescriptorTestCase
{
protected static function getDescriptor()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;

$container->loadFromExtension('framework', [
'http_method_override' => false,
'workflows' => [
'my_workflow' => [
'type' => 'state_machine',
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'places' => [
'first',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;

$container->loadFromExtension('framework', [
'http_method_override' => false,
'workflows' => [
'article' => [
'type' => 'workflow',
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'initial_marking' => ['draft'],
'places' => [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;

$container->loadFromExtension('framework', [
'http_method_override' => false,
'workflows' => [
'article' => [
'type' => 'workflow',
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'initial_marking' => ['draft'],
'places' => [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;

$container->loadFromExtension('framework', [
'http_method_override' => false,
Expand All @@ -12,7 +12,7 @@
'property' => 'state',
],
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'events_to_dispatch' => [],
'places' => [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;

$container->loadFromExtension('framework', [
'http_method_override' => false,
Expand All @@ -12,7 +12,7 @@
'property' => 'state',
],
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'events_to_dispatch' => [
'workflow.leave',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;

$container->loadFromExtension('framework', [
'http_method_override' => false,
'workflows' => [
'my_workflow' => [
'type' => 'workflow',
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'support_strategy' => 'foobar',
'places' => [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;

$container->loadFromExtension('framework', [
'http_method_override' => false,
'workflows' => [
'article' => [
'type' => 'workflow',
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'initial_marking' => ['draft'],
'metadata' => [
Expand Down Expand Up @@ -44,7 +44,7 @@
],
'pull_request' => [
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'initial_marking' => 'start',
'metadata' => [
Expand Down Expand Up @@ -103,7 +103,7 @@
'service' => 'workflow_service',
],
'supports' => [
FrameworkExtensionTest::class,
FrameworkExtensionTestCase::class,
],
'places' => [
['name' => 'first'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;

$container->loadFromExtension('framework', [
'http_method_override' => false,
'workflows' => [
'enabled' => true,
'foo' => [
'type' => 'workflow',
'supports' => [FrameworkExtensionTest::class],
'supports' => [FrameworkExtensionTestCase::class],
'initial_marking' => ['bar'],
'places' => ['bar', 'baz'],
'transitions' => [
Expand Down
Loading