You are here

function FeedsXPathParserWebTestCase::postAndCheck in Feeds XPath Parser 7

Same name and namespace in other branches
  1. 6 tests/feeds_xpathparser.test \FeedsXPathParserWebTestCase::postAndCheck()
4 calls to FeedsXPathParserWebTestCase::postAndCheck()
FeedsXPathParseHTMLTestCase::test in tests/feeds_xpathparser_parser_html.test
Run tests.
FeedsXPathParseHTMLTestCase::_testGetRaw in tests/feeds_xpathparser_parser_html.test
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 38
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);
  }
}