PMCORE-635

This commit is contained in:
Julio Cesar Laura Avendaño
2020-03-27 12:54:39 -04:00
parent 1464e962ce
commit 6cf165ef34
2 changed files with 30 additions and 5 deletions

View File

@@ -963,6 +963,27 @@ class PmDynaformTest extends TestCase
$this->assertEquals(strlen($sqlOriginal), strlen($sqlParsed));
}
/**
* Review if the title of a Dynaform is correct
*
* @covers PmDynaform::getDynaformTitle()
* @test
*/
public function it_should_get_dynaform_title()
{
// Create a Dynaform
$dynaform = factory(Dynaform::class)->create([]);
// Instance the class to test
$pmDynaform = new PmDynaform();
// Get the title of the Dynaform
$dynaformTitle = $pmDynaform->getDynaformTitle($dynaform->DYN_UID);
// Compare the values
$this->assertEquals($dynaformTitle, $dynaform->DYN_TITLE);
}
}
// Dummy function used for the coverture