소스 검색

Integration tests #5694 - integration tests

Aleksandr Trofimov 1 개월 전
부모
커밋
2e4fd16e9c
2개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tests/integration/BxDolIntegrationTestCase.php
  2. 1 0
      tests/integration/account/BxDolAccountTestCase.php

+ 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);