Commit | Line | Data |
---|---|---|
2ede60ec DL |
1 | <?php |
2 | // $Id$ | |
3 | ||
4 | /* | |
5 | +--------------------------------------------------------------------+ | |
6 | | CiviCRM version 4.3 | | |
7 | +--------------------------------------------------------------------+ | |
8 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
9 | +--------------------------------------------------------------------+ | |
10 | | This file is a part of CiviCRM. | | |
11 | | | | |
12 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
13 | | under the terms of the GNU Affero General Public License | | |
14 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
15 | | | | |
16 | | CiviCRM is distributed in the hope that it will be useful, but | | |
17 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
18 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
19 | | See the GNU Affero General Public License for more details. | | |
20 | | | | |
21 | | You should have received a copy of the GNU Affero General Public | | |
22 | | License and the CiviCRM Licensing Exception along | | |
23 | | with this program; if not, contact CiviCRM LLC | | |
24 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
25 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
26 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
27 | +--------------------------------------------------------------------+ | |
28 | */ | |
29 | ||
30 | /** | |
31 | * File for the CiviCRM APIv3 job functions | |
32 | * | |
33 | * @package CiviCRM_APIv3 | |
34 | * @subpackage API_MailingContact | |
35 | * | |
36 | * @copyright CiviCRM LLC (c) 2004-2013 | |
37 | * @version $Id: Job.php 30879 2010-11-22 15:45:55Z shot $ | |
38 | * | |
39 | */ | |
40 | require_once 'CiviTest/CiviUnitTestCase.php'; | |
41 | class api_v3_MailingContactTest extends CiviUnitTestCase { | |
42 | protected $_apiversion; | |
43 | ||
44 | function setUp() { | |
45 | parent::setUp(); | |
46 | $this->quickCleanup( | |
47 | array( | |
48 | 'civicrm_mailing', | |
49 | 'civicrm_job', | |
50 | 'civicrm_mailing_event_queue', | |
51 | 'civicrm_mailing_event_delivered', | |
52 | 'civicrm_mailing_event_bounced', | |
53 | ) | |
54 | ); | |
55 | } | |
56 | ||
57 | function tearDown() { | |
58 | parent::tearDown(); | |
59 | } | |
60 | ||
61 | function testMailingContactDelivered( ) { | |
62 | $op = new PHPUnit_Extensions_Database_Operation_Insert(); | |
63 | $op->execute($this->_dbconn, | |
64 | new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet( | |
65 | dirname(__FILE__) . '/dataset/mailing_contact.xml' | |
66 | ) | |
67 | ); | |
68 | } | |
69 | } |