1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Mon, 16 Jun 2025 14:10:53 +0200
Subject: Fix tests arguments
---
tests/Tests/ORM/Functional/Ticket/DDC2825Test.php | 2 +-
tests/Tests/ORM/Functional/Ticket/GH9230Test.php | 2 +-
tests/Tests/ORM/Hydration/SingleScalarHydratorTest.php | 1 -
tests/Tests/ORM/Mapping/NamingStrategyTest.php | 2 +-
tests/Tests/ORM/Query/SqlWalkerTest.php | 2 +-
5 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/Tests/ORM/Functional/Ticket/DDC2825Test.php b/tests/Tests/ORM/Functional/Ticket/DDC2825Test.php
index ea12629..680e03f 100644
--- a/tests/Tests/ORM/Functional/Ticket/DDC2825Test.php
+++ b/tests/Tests/ORM/Functional/Ticket/DDC2825Test.php
@@ -30,7 +30,7 @@ class DDC2825Test extends OrmFunctionalTestCase
/** @param class-string $className */
#[DataProvider('getTestedClasses')]
- public function testPersistenceOfEntityWithSchemaMapping(string $className): void
+ public function testPersistenceOfEntityWithSchemaMapping(string $className, string $expectedSchemaName, string $expectedTableName): void
{
$this->createSchemaForModels($className);
diff --git a/tests/Tests/ORM/Functional/Ticket/GH9230Test.php b/tests/Tests/ORM/Functional/Ticket/GH9230Test.php
index 3354982..7ee0d5e 100644
--- a/tests/Tests/ORM/Functional/Ticket/GH9230Test.php
+++ b/tests/Tests/ORM/Functional/Ticket/GH9230Test.php
@@ -60,7 +60,7 @@ class GH9230Test extends OrmFunctionalTestCase
'json=0' => ['extra', 0, 1],
'json=0.0' => ['extra', 0.0, 1],
'json=false' => ['extra', false, 1],
- 'json=""' => ['extra', '', 1, ['""', '1']],
+ 'json=""' => ['extra', ['', 1], ['""', '1']],
'json=null' => ['enabled', null, 1],
];
}
diff --git a/tests/Tests/ORM/Hydration/SingleScalarHydratorTest.php b/tests/Tests/ORM/Hydration/SingleScalarHydratorTest.php
index 87d8ede..c9ff4bb 100644
--- a/tests/Tests/ORM/Hydration/SingleScalarHydratorTest.php
+++ b/tests/Tests/ORM/Hydration/SingleScalarHydratorTest.php
@@ -112,7 +112,6 @@ class SingleScalarHydratorTest extends HydrationTestCase
'score' => 10, // Ignored since not part of ResultSetMapping
],
],
- 1,
];
// Multiple row (NOT OK), multiple columns (NOT OK)
diff --git a/tests/Tests/ORM/Mapping/NamingStrategyTest.php b/tests/Tests/ORM/Mapping/NamingStrategyTest.php
index 18ee29f..24d17e5 100644
--- a/tests/Tests/ORM/Mapping/NamingStrategyTest.php
+++ b/tests/Tests/ORM/Mapping/NamingStrategyTest.php
@@ -230,7 +230,7 @@ class NamingStrategyTest extends OrmTestCase
// UnderscoreNamingStrategy
[self::underscoreNamingLower(), 'some_class_name2_test_id', 'SomeClassName2Test', null],
- [self::underscoreNamingLower(), 'some_class_name_id', 'SomeClassName', null, null],
+ [self::underscoreNamingLower(), 'some_class_name_id', 'SomeClassName', null],
[self::underscoreNamingLower(), 'class_name_identifier', '\Some\Class\ClassName', 'identifier'],
[self::underscoreNamingLower(), 'name2_test_identifier', '\Some\Class\Name2Test', 'identifier'],
[self::underscoreNamingUpper(), 'SOME_CLASS_NAME_ID', 'SomeClassName', null],
diff --git a/tests/Tests/ORM/Query/SqlWalkerTest.php b/tests/Tests/ORM/Query/SqlWalkerTest.php
index 87daa3e..39a01a5 100644
--- a/tests/Tests/ORM/Query/SqlWalkerTest.php
+++ b/tests/Tests/ORM/Query/SqlWalkerTest.php
@@ -31,7 +31,7 @@ class SqlWalkerTest extends OrmTestCase
}
#[DataProvider('getColumnNamesAndSqlAliases')]
- public function testGetSQLTableAliasIsSameForMultipleCalls($tableName): void
+ public function testGetSQLTableAliasIsSameForMultipleCalls($tableName, $expectedAlias): void
{
self::assertSame(
$this->sqlWalker->getSQLTableAlias($tableName),
|