projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4904 from eileenmcnaughton/mailing-contact
[civicrm-core.git]
/
tests
/
phpunit
/
WebTest
/
Grant
/
StandaloneAddTest.php
diff --git
a/tests/phpunit/WebTest/Grant/StandaloneAddTest.php
b/tests/phpunit/WebTest/Grant/StandaloneAddTest.php
index 07ea8db79af71f6653cce28644aace3c3f2b11a1..e7c5a8787e6a65d1822a0f2f645f83ddd6e8d920 100644
(file)
--- a/
tests/phpunit/WebTest/Grant/StandaloneAddTest.php
+++ b/
tests/phpunit/WebTest/Grant/StandaloneAddTest.php
@@
-1,7
+1,7
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
5
|
+ | CiviCRM version 4.
6
|
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
@@
-25,13
+25,17
@@
*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Grant_StandaloneAddTest
+ */
class WebTest_Grant_StandaloneAddTest extends CiviSeleniumTestCase {
protected function setUp() {
parent::setUp();
}
class WebTest_Grant_StandaloneAddTest extends CiviSeleniumTestCase {
protected function setUp() {
parent::setUp();
}
- function testStandaloneGrantAdd() {
+
public
function testStandaloneGrantAdd() {
// Log in as admin first to verify permissions for CiviGrant
$this->webtestLogin('admin');
// Log in as admin first to verify permissions for CiviGrant
$this->webtestLogin('admin');
@@
-48,8
+52,7
@@
class WebTest_Grant_StandaloneAddTest extends CiviSeleniumTestCase {
$this->openCiviPage('grant/add', 'reset=1&context=standalone', '_qf_Grant_upload');
// create new contact using dialog
$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");
// select grant Status
$this->select("status_id", "value=1");
@@
-103,4
+106,3
@@
class WebTest_Grant_StandaloneAddTest extends CiviSeleniumTestCase {
$this->webtestVerifyTabularData($expected);
}
}
$this->webtestVerifyTabularData($expected);
}
}
-