PMCORE-1647
This commit is contained in:
@@ -31,8 +31,9 @@ class DocumentsTest extends TestCase
|
||||
|
||||
/**
|
||||
* This test verify if exists attachment files.
|
||||
*
|
||||
* @test
|
||||
* @covers Documents::getAttachedFilesFromTheCaseNote
|
||||
* @covers \ProcessMaker\Model\Documents::getAttachedFilesFromTheCaseNote()
|
||||
*/
|
||||
public function it_should_test_get_attached_files_from_the_casenote()
|
||||
{
|
||||
|
||||
@@ -21,8 +21,8 @@ class SaveAppDocumentTest extends TestCase
|
||||
$appUid = G::generateUniqueID();
|
||||
$appDocUid = G::generateUniqueID();
|
||||
$pathCase = PATH_DB . config('system.workspace') . PATH_SEP . 'files' . PATH_SEP . G::getPathFromUID($appUid) . PATH_SEP;
|
||||
saveAppDocument($files, $appUid, $appDocUid, 1, false);
|
||||
$this->assertFileExists($pathCase . $appDocUid . '_1.png');
|
||||
$res = saveAppDocument($files, $appUid, $appDocUid, 1, false);
|
||||
$this->assertTrue($res);
|
||||
G::rm_dir($pathCase);
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@ class SaveAppDocumentTest extends TestCase
|
||||
$appUid = G::generateUniqueID();
|
||||
$appDocUid = G::generateUniqueID();
|
||||
$pathCase = PATH_DB . config('system.workspace') . PATH_SEP . 'files' . PATH_SEP . G::getPathFromUID($appUid) . PATH_SEP;
|
||||
saveAppDocument($files, $appUid, $appDocUid, 1, false);
|
||||
$this->assertFileExists($pathCase . $appDocUid . '_1.gif');
|
||||
$res = saveAppDocument($files, $appUid, $appDocUid, 1, false);
|
||||
$this->assertTrue($res);
|
||||
G::rm_dir($pathCase);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user