You are here

protected function AsafBaseTestCase::initAsafFormWrapper in Asaf (ajax submit for any form) 7

Same name and namespace in other branches
  1. 8 tests/asaf.test \AsafBaseTestCase::initAsafFormWrapper()
1 call to AsafBaseTestCase::initAsafFormWrapper()
AsafCommonTests::testFormSubmit in tests/asaf.test

File

tests/asaf.test, line 28

Class

AsafBaseTestCase

Code

protected function initAsafFormWrapper() {
  $this->content = preg_replace('/(<form(.*)data-asaf-area-wrapper-id=\\"(.*?)\\"([\\s\\w\\W]*)<\\/form>)/i', '<div id="\\3">\\1</div>', $this->content);
}