<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
protected $_apiversion = 3;
protected $_entity = 'mailing';
- function setUp() {
+ public function setUp() {
parent::setUp();
$params = array(
'first_name' => 'abc1',
$this->_contact = $this->callAPISuccess("contact", "create", $params);
}
- function tearDown() {
+ public function tearDown() {
$this->callAPISuccess("contact", "delete", array('id' => $this->_contact['id']));
parent::tearDown();
}
* but don't copy it only any other classes
*/
public function testMailingNullParams() {
- $result = $this->callAPIFailure('MailingContact', 'get', null);
+ $result = $this->callAPIFailure('MailingContact', 'get', NULL);
}
public function testMailingContactGetFields() {
* belongs in the SyntaxConformance class
*/
public function testMailingContactInvalidContactID() {
- $params = array('contact_id' => 'This is not a number',);
+ $params = array('contact_id' => 'This is not a number');
$result = $this->callAPIFailure('MailingContact', 'get', $params);
}
/**
* Test that the API returns only the "Bounced" mailings when instructed to do so
*/
- function testMailingContactBounced( ) {
+ public function testMailingContactBounced() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
//Create the User
$op->execute($this->_dbconn,