PMCORE-1647

This commit is contained in:
Paula Quispe
2020-06-13 11:10:26 -04:00
parent 66e4f0ecc8
commit fb1b002fd2
2 changed files with 6 additions and 5 deletions

View File

@@ -31,8 +31,9 @@ class DocumentsTest extends TestCase
/** /**
* This test verify if exists attachment files. * This test verify if exists attachment files.
*
* @test * @test
* @covers Documents::getAttachedFilesFromTheCaseNote * @covers \ProcessMaker\Model\Documents::getAttachedFilesFromTheCaseNote()
*/ */
public function it_should_test_get_attached_files_from_the_casenote() public function it_should_test_get_attached_files_from_the_casenote()
{ {

View File

@@ -21,8 +21,8 @@ class SaveAppDocumentTest extends TestCase
$appUid = G::generateUniqueID(); $appUid = G::generateUniqueID();
$appDocUid = G::generateUniqueID(); $appDocUid = G::generateUniqueID();
$pathCase = PATH_DB . config('system.workspace') . PATH_SEP . 'files' . PATH_SEP . G::getPathFromUID($appUid) . PATH_SEP; $pathCase = PATH_DB . config('system.workspace') . PATH_SEP . 'files' . PATH_SEP . G::getPathFromUID($appUid) . PATH_SEP;
saveAppDocument($files, $appUid, $appDocUid, 1, false); $res = saveAppDocument($files, $appUid, $appDocUid, 1, false);
$this->assertFileExists($pathCase . $appDocUid . '_1.png'); $this->assertTrue($res);
G::rm_dir($pathCase); G::rm_dir($pathCase);
} }
@@ -40,8 +40,8 @@ class SaveAppDocumentTest extends TestCase
$appUid = G::generateUniqueID(); $appUid = G::generateUniqueID();
$appDocUid = G::generateUniqueID(); $appDocUid = G::generateUniqueID();
$pathCase = PATH_DB . config('system.workspace') . PATH_SEP . 'files' . PATH_SEP . G::getPathFromUID($appUid) . PATH_SEP; $pathCase = PATH_DB . config('system.workspace') . PATH_SEP . 'files' . PATH_SEP . G::getPathFromUID($appUid) . PATH_SEP;
saveAppDocument($files, $appUid, $appDocUid, 1, false); $res = saveAppDocument($files, $appUid, $appDocUid, 1, false);
$this->assertFileExists($pathCase . $appDocUid . '_1.gif'); $this->assertTrue($res);
G::rm_dir($pathCase); G::rm_dir($pathCase);
} }
} }