Pārlūkot izejas kodu

Integration tests #5694 - integration tests

Aleksandr Trofimov 1 mēnesi atpakaļ
vecāks
revīzija
2e4fd16e9c

+ 2 - 0
tests/integration/BxDolIntegrationTestCase.php

@@ -12,6 +12,8 @@ abstract class BxDolIntegrationTestCase extends BxDolTestCase
 
     protected function setUp(): void
     {
+        BxDolDb::getInstance()->cleanMemoryAll();
+
         $this->_aAccountAuthBackups = [];
         foreach (['admin', 'user'] as $sKind) {
             $oAccount = BxDolAccount::getInstance($this->bxTestEmail($sKind));

+ 1 - 0
tests/integration/account/BxDolAccountTestCase.php

@@ -84,6 +84,7 @@ abstract class BxDolAccountTestCase extends BxDolIntegrationTestCase
         $this->assertNotFalse($iAccountId);
         $this->_iCreatedAccountId = (int)$iAccountId;
 
+        BxDolProfileQuery::getInstance()->getInfoById((int)$iAccountId, true);
         $iProfileId = (new BxTemplAccountForms())->onAccountCreated($iAccountId, $oForm->isSetPendingApproval());
         $this->assertGreaterThan(0, (int)$iProfileId);