create(); $this->assertCount(1, $table->appUid($table->APP_UID)->get()); } /** * This test scopeIndex * * @covers \ProcessMaker\Model\AppThread::scopeIndex() * @test */ public function it_return_scope_index() { $table = factory(AppThread::class)->create(); $this->assertCount(1, $table->index($table->DEL_INDEX)->get()); } /** * This test getThread * * @covers \ProcessMaker\Model\AppThread::getThread() * @covers \ProcessMaker\Model\AppThread::scopeAppUid() * @covers \ProcessMaker\Model\AppThread::scopeIndex() * @test */ public function it_return_thread() { $table = factory(AppThread::class)->create(); $result = AppThread::getThread($table->APP_UID, $table->DEL_INDEX); $this->assertNotEmpty($result); } }