Merged in bugfix/PMCORE-3435 (pull request #8225)

PMCORE-3435

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Andrea Adamczyk
2021-10-19 19:36:30 +00:00
committed by Julio Cesar Laura Avendaño
3 changed files with 60 additions and 4 deletions

View File

@@ -69,4 +69,30 @@ class ConsolidatedTest extends TestCase
$result = $consolidated->getConsolidated();
$this->assertTrue($result > 0);
}
}
/**
* This tests the scopeJoinProcess
*
* @covers \ProcessMaker\Model\Consolidated::scopeJoinProcess()
* @test
*/
public function it_should_test_scope_join_process()
{
$query = factory(Consolidated::class)->states('foreign_keys')->create();
$consolidated = new Consolidated();
$this->assertCount(1, $consolidated->scopeJoinProcess($query)->get());
}
/**
* This tests the scopeJoinTask
*
* @covers \ProcessMaker\Model\Consolidated::scopeJoinTask()
* @test
*/
public function it_should_test_scope_join_task()
{
$query = factory(Consolidated::class)->states('foreign_keys')->create();
$consolidated = new Consolidated();
$this->assertCount(1, $consolidated->scopeJoinTask($query)->get());
}
}