protected function WebTestBase::postAndCheck in Feeds XPath Parser 8
Posts to a URL and checks the field values.
Parameters
string $url: The url to POST to.
array $edit: The form values.
string $button: The button to press.
string $saved_text: The save message text.
4 calls to WebTestBase::postAndCheck()
- XPathHTMLParserTest::test in lib/
Drupal/ feeds_xpathparser/ Tests/ XPathHTMLParserTest.php - Run tests.
- XPathHTMLParserTest::_testGetRaw in lib/
Drupal/ feeds_xpathparser/ Tests/ XPathHTMLParserTest.php - XPathXMLParserTest::test in lib/
Drupal/ feeds_xpathparser/ Tests/ XPathXMLParserTest.php - Run tests.
- XPathXMLParserTest::testVariables in lib/
Drupal/ feeds_xpathparser/ Tests/ XPathXMLParserTest.php - Test variable substitution.
File
- lib/
Drupal/ feeds_xpathparser/ WebTestBase.php, line 52 - Contains Drupal\feeds_xpathparser\WebTestBase.
Class
- WebTestBase
- Test single feeds.
Namespace
Drupal\feeds_xpathparserCode
protected 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);
}
}