PMCORE-1542
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace Tests\unit\workflow\engine\src\ProcessMaker\Model;
|
||||
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use ProcessMaker\Model\Documents;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* Class DocumentsTest
|
||||
*
|
||||
* @coversDefaultClass \ProcessMaker\Model\Documents
|
||||
*/
|
||||
class DocumentsTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
/**
|
||||
* Review get app files related to the case notes
|
||||
*
|
||||
* @test
|
||||
*/
|
||||
public function it_test_get_case_note_files()
|
||||
{
|
||||
$appDoc = factory(Documents::class)->states('case_notes')->create();
|
||||
$doc = new Documents();
|
||||
$res = $doc->getAppFiles($appDoc->APP_UID, Documents::DOC_TYPE_CASE_NOTE);
|
||||
$this->assertNotEmpty($res);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user