public function testCanInsertRow() { $testPayload = array(); foreach ($this->adapter->getColumns() as $k) { $testPayload[strtolower($k)] = $k . substr(time(), 6); } $entries = $this->adapter->insertRow($testPayload); foreach ($entries as $entry) { $this->assertTrue($entry instanceof Zend_Gdata_App_Entry); } }
/** * * @param string $fname * @param string $lname * @param string $email * @param string $address * @return Zend_Gdata_Spreadsheets_ListEntry */ function newPerson($fname, $lname, $email, $address) { $latAndLong = $this->geocoder->getGeocodedLatitudeAndLongitude($address); $payload = array("firstname" => $fname, "lastname" => $lname, "email" => $email, "address" => $address, "latitude" => $latAndLong[1], "longitude" => $latAndLong[0]); return $this->spreadsheet->insertRow($payload); }