summaryrefslogtreecommitdiffstats
path: root/php-doctrine-datafixtures-dbal3.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-10-05 08:18:22 +0200
committerRemi Collet <remi@remirepo.net>2021-10-05 08:18:22 +0200
commit181327f5416952403607f1674b407e39431afab8 (patch)
tree5d83f65bbbd71f1c2fe7c2fdb1b55b80aae9b303 /php-doctrine-datafixtures-dbal3.patch
parentf273bfb1b60865dfdd897b5effc465678b08102c (diff)
update to 1.5.1
add patch for test suite with doctrine/dbal v3 from https://github.com/doctrine/data-fixtures/pull/370
Diffstat (limited to 'php-doctrine-datafixtures-dbal3.patch')
-rw-r--r--php-doctrine-datafixtures-dbal3.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/php-doctrine-datafixtures-dbal3.patch b/php-doctrine-datafixtures-dbal3.patch
new file mode 100644
index 0000000..c2bdcbd
--- /dev/null
+++ b/php-doctrine-datafixtures-dbal3.patch
@@ -0,0 +1,41 @@
+From 5abdfad7119646725461472c392e90c9b4121d84 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 5 Oct 2021 08:10:52 +0200
+Subject: [PATCH] skip test using setFilterSchemaAssetsExpression removed in
+ DBAL3
+
+Signed-off-by: Remi Collet <remi@php.net>
+---
+ .../DataFixtures/Purger/ORMPurgerExcludeTest.php | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/tests/Doctrine/Tests/Common/DataFixtures/Purger/ORMPurgerExcludeTest.php b/tests/Doctrine/Tests/Common/DataFixtures/Purger/ORMPurgerExcludeTest.php
+index c4169af..fce0057 100644
+--- a/tests/Doctrine/Tests/Common/DataFixtures/Purger/ORMPurgerExcludeTest.php
++++ b/tests/Doctrine/Tests/Common/DataFixtures/Purger/ORMPurgerExcludeTest.php
+@@ -44,7 +44,9 @@ protected function loadTestData()
+
+ $connection = $em->getConnection();
+ $configuration = $connection->getConfiguration();
+- $configuration->setFilterSchemaAssetsExpression(null);
++ if (method_exists($configuration, 'setFilterSchemaAssetsExpression')) {
++ $configuration->setFilterSchemaAssetsExpression(null);
++ }
+
+ $schemaTool = new SchemaTool($em);
+ $schemaTool->dropDatabase();
+@@ -86,7 +88,13 @@ public function executeTestPurge($expression, array $list, ?callable $filter = n
+
+ $connection = $em->getConnection();
+ $configuration = $connection->getConfiguration();
+- $configuration->setFilterSchemaAssetsExpression($expression);
++ if ($expression !== null) {
++ if (! method_exists($configuration, 'setFilterSchemaAssetsExpression')) {
++ $this->markTestSkipped('DBAL 2 is required to test schema assets filters');
++ }
++
++ $configuration->setFilterSchemaAssetsExpression($expression);
++ }
+
+ if ($filter !== null) {
+ if (! method_exists($configuration, 'setSchemaAssetsFilter')) {