PMCORE-1279

This commit is contained in:
Paula Quispe
2020-03-24 10:34:37 -04:00
parent d82f17fde9
commit 0a8398206f
3 changed files with 76 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\unit\workflow\engine\src\ProcessMaker\Model;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use ProcessMaker\Model\Task;
use Tests\TestCase;
/**
* Class TaskTest
*
* @coversDefaultClass \ProcessMaker\Model\Task
*/
class TaskTest extends TestCase
{
use DatabaseTransactions;
/**
* This checks to make get the name of the task
*
* @covers \ProcessMaker\Model\Task::title()
* @test
*/
public function it_should_return_pages_of_data()
{
$task = factory(Task::class)->create();
$taskInstance = new Task();
$title = $taskInstance->title($task->TAS_ID);
$this->assertEquals($title, $task->TAS_TITLE);
}
}