コード例 #1
0
 /**
  * This performs a little set up for these tests.
  *
  * @return void
  * @author Eric Rochester <*****@*****.**>
  **/
 public function setUp()
 {
     parent::setUp();
     $text = "WKT: POINT(1, 2)\n\nnothing";
     $_POST['Elements'][(string) $this->_cutil->getElementId()] = array('0' => array('mapon' => '1', 'text' => $text));
     $this->_coverage_text = $this->addElementText($this->_item, $this->_coverage, $text, 0);
     $this->toDelete($this->_coverage_text);
     $this->_item->save();
 }
 /**
  * This tears down after the tests.
  *
  * @return void
  * @author Eric Rochester <*****@*****.**>
  **/
 public function tearDown()
 {
     parent::tearDown();
 }
コード例 #3
0
 /**
  * This performs a little set up for this set of tests.
  *
  * @return void
  * @author Eric Rochester <*****@*****.**>
  **/
 public function setUp()
 {
     parent::setUp();
     $this->_coverage = $this->db->getTable('Element')->findBy(array('name' => 'Coverage'));
 }