You are here

function FeedsXPathParserWebTestCase::postAndCheck in Feeds XPath Parser 6

Same name and namespace in other branches
  1. 7 tests/feeds_xpathparser.test \FeedsXPathParserWebTestCase::postAndCheck()
3 calls to FeedsXPathParserWebTestCase::postAndCheck()
FeedsXPathParseHTMLTestCase::test in tests/feeds_xpathparser_parser_html.test
Run tests.
FeedsXPathParserXMLTestCase::test in tests/feeds_xpathparser_parser_xml.test
Run tests.
FeedsXPathParserXMLTestCase::testVariables in tests/feeds_xpathparser_parser_xml.test
Test variable substitution.

File

tests/feeds_xpathparser.test, line 43
Tests for FeedsXPathParserXML.inc.

Class

FeedsXPathParserWebTestCase
Test single feeds.

Code

function postAndCheck($url, $edit, $button, $saved_text) {
  $this
    ->drupalPost($url, $edit, $button);
  $this
    ->assertText($saved_text);
  $this
    ->drupalGet($url);
  foreach ($edit as $key => $value) {
    $this
      ->assertFieldByName($key, $value);
  }
}