3
class FastTrackFillTest extends IRM_WebTestCase
5
function testAddDisplay()
7
$rows[] = "INSERT INTO fasttracktemplates
8
(ID, name, request, response)
10
(17, 'foo', 'req', 'respond to me & only me!')";
14
$this->get(TESTING_BASEURI.'/users/tracking-fasttrack.php?AUTOFILL=17');
15
$this->assertNoUnwantedPattern(PHP_ERROR_REGEX);
17
$this->assertTitle('IRM: FastTrack');
19
// A few random fields...
20
$this->assertField('ufname', 'Technician User');
21
$this->assertField('uemail', 'tech@localhost');
23
$this->assertWantedPattern('%<textarea.*name="contents">req</textarea>%i');
24
$this->assertWantedPattern('%<textarea.*name="solution">respond to me & only me!</textarea>%i');