EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Fix tests in PG
Yuriib82c21e12bdc
diff --git a/tests/integration/Espo/Currency/CurrencyTest.php b/tests/integration/Espo/Currency/CurrencyTest.phpindex 109f35ab3d..a96898a20a 100644--- a/tests/integration/Espo/Currency/CurrencyTest.php+++ b/tests/integration/Espo/Currency/CurrencyTest.php@@ -201,7 +201,9 @@ class CurrencyTest extends BaseTestCase'USD' => 0.5,], 'EUR'));- $this->getDataManager()->rebuild([]);+ // Full rebuild caused a problem with the test transaction in PG.+ $this->getDataManager()->rebuildMetadata();+$this->reCreateApplication(reuse: true);$em = $this->getEntityManager();@@ -243,7 +245,9 @@ class CurrencyTest extends BaseTestCase'USD' => 0.5,], 'EUR'));- $this->getDataManager()->rebuild([]);+ // Full rebuild caused a problem with the test transaction in PG.+ $this->getDataManager()->rebuildMetadata();+$this->reCreateApplication(reuse: true);$em = $this->getEntityManager();