mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
upgrade phpunit: make data provider static
This commit is contained in:
@@ -32,7 +32,7 @@ final class DateNormalizerTest extends KernelTestCase
|
||||
$this->prophet = new Prophet();
|
||||
}
|
||||
|
||||
public function generateDataNormalize()
|
||||
public static function generateDataNormalize()
|
||||
{
|
||||
$datetime = \DateTime::createFromFormat('Y-m-d H:i:sO', '2021-06-05 15:05:01+02:00');
|
||||
$date = \DateTime::createFromFormat('Y-m-d H:i:sO', '2021-06-05 00:00:00+02:00');
|
||||
|
@@ -35,7 +35,7 @@ final class DoctrineExistingEntityNormalizerTest extends KernelTestCase
|
||||
$this->normalizer = new DoctrineExistingEntityNormalizer($em, $serializerFactory);
|
||||
}
|
||||
|
||||
public function dataProviderUserId()
|
||||
public static function dataProviderUserId()
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
|
@@ -28,7 +28,7 @@ final class PhonenumberNormalizerTest extends TestCase
|
||||
{
|
||||
use ProphecyTrait;
|
||||
|
||||
public function dataProviderNormalizePhonenumber()
|
||||
public static function dataProviderNormalizePhonenumber()
|
||||
{
|
||||
$phonenumberUtil = PhoneNumberUtil::getInstance();
|
||||
|
||||
|
@@ -40,7 +40,7 @@ final class UserNormalizerTest extends TestCase
|
||||
/**
|
||||
* @throws NumberParseException
|
||||
*/
|
||||
public function dataProviderUserNormalizer()
|
||||
public static function dataProviderUserNormalizer()
|
||||
{
|
||||
$user = new User();
|
||||
$userNoPhone = new User();
|
||||
|
Reference in New Issue
Block a user