<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- function testStandaloneGrantAdd() {
+ public function testStandaloneGrantAdd() {
// Log in as admin first to verify permissions for CiviGrant
$this->webtestLogin('admin');
$this->openCiviPage('grant/add', 'reset=1&context=standalone', '_qf_Grant_upload');
// create new contact using dialog
- $firstName = substr(sha1(rand()), 0, 7);
- $this->webtestNewDialogContact($firstName, "Grantor", $firstName . "@example.com");
+ $contact = $this->createDialogContact();
// select grant Status
$this->select("status_id", "value=1");
$this->webtestVerifyTabularData($expected);
}
}
-