/** * Test getACHEFTReturnSpecificDateXML. */ public function testReportLinkgetACHEFTReturnSpecificDateXML() { $iats = new ReportLink(self::$agentCode, self::$password); $time = mktime(0, 0, 0, date('n'), date('j'), date('Y')); $request = array('date' => $iats->getFormattedDate($time), 'customerIPAddress' => ''); $response = $iats->getACHEFTReturnSpecificDateXML($request); // ACH / EFT refunds are not processed when using the test server, // so a successful request is made without returning report data. $this->assertEquals('No data returned for this date', $response); }
/** * Test getACHEFTReturnSpecificDateXML. */ public function testReportLinkgetACHEFTReturnSpecificDateXML() { $iats = new ReportLink(self::$agentCode, self::$password); $time = strtotime('+1 day'); $request = array('date' => $iats->getFormattedDate($time), 'customerIPAddress' => ''); $response = $iats->getACHEFTReturnSpecificDateXML($request); $this->assertEquals('No data returned for this date', $response); }