You are here

function MerciTestCase::merciUpdateNode in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2

Same name and namespace in other branches
  1. 7.2 tests/merci_testcase.php \MerciTestCase::merciUpdateNode()
6 calls to MerciTestCase::merciUpdateNode()
MerciIssueTestCase::testIssue1070658 in tests/merci_issues.test
MerciIssueTestCase::testIssue1103328 in tests/merci_issues.test
MerciUserTestCase::testMerciBucketAvailability in tests/merci_user.test
MerciUserTestCase::testMerciCheckedOutCase in tests/merci_user.test
MerciUserTestCase::testMerciResourceAvailability in tests/merci_user.test

... See full list

File

tests/merci_testcase.php, line 117
Simpletest case for node_example module.

Class

MerciTestCase
Functionality tests for merci module. General setup and functions all merci tests should inherit.

Code

function merciUpdateNode($nid, $settings, $pass = TRUE) {
  $this
    ->drupalPost("node/{$nid}/edit", $settings, t('Save'));
  $node = node_load($nid);
  return $node;
}