@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user