PMCORE-3435

This commit is contained in:
Andrea Adamczyk
2021-10-19 10:06:48 -04:00
parent 8ab5fcfe01
commit 4e7aa23c2c
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());
}
}