X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FMailingTest.php;h=c09069d629be1a293390d21ebfed55f02fb29429;hb=fadb804f824b3fbc7a2f737cc9a4317055898b3a;hp=8d4a63101b253fa964431e4a6b37f21191ffae33;hpb=98da455d14054e8607e5b902c2b89942938e04c2;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/MailingTest.php b/tests/phpunit/api/v3/MailingTest.php index 8d4a63101b..c09069d629 100644 --- a/tests/phpunit/api/v3/MailingTest.php +++ b/tests/phpunit/api/v3/MailingTest.php @@ -37,7 +37,7 @@ class api_v3_MailingTest extends CiviUnitTestCase { protected $_apiversion = 3; protected $_params = array(); protected $_entity = 'Mailing'; - public $_eNoticeCompliant = TRUE; + function get_info() { return array( @@ -49,8 +49,8 @@ class api_v3_MailingTest extends CiviUnitTestCase { function setUp() { parent::setUp(); - $this->_groupID = $this->groupCreate(NULL); - $this->_email = 'test@test.test'; + $this->_groupID = $this->groupCreate(); + $this->_email = 'test@test.test'; $this->_params = array( 'subject' => 'maild', 'body_text' => 'bdkfhdskfhduew', @@ -70,7 +70,7 @@ class api_v3_MailingTest extends CiviUnitTestCase { $result = $this->callAPIAndDocument('mailing', 'create', $this->_params, __FUNCTION__, __FILE__); $jobs = $this->callAPISuccess('mailing_job', 'get', array('mailing_id' => $result['id'])); $this->assertEquals(1, $jobs['count']); - unset($this->_params['created_id']);// return isn't working on this in getAndCheck so lets not check it for now + unset($this->_params['created_id']); // return isn't working on this in getAndCheck so lets not check it for now $this->getAndCheck($this->_params, $result['id'], 'mailing'); } @@ -121,7 +121,7 @@ class api_v3_MailingTest extends CiviUnitTestCase { 'hash' => 'Wrong Hash', 'event_subscribe_id' => '123', 'time_stamp' => '20111111010101', - ); + ); $result = $this->callAPIFailure('mailing_event', 'confirm', $params, 'Confirmation failed' ); @@ -144,7 +144,7 @@ class api_v3_MailingTest extends CiviUnitTestCase { 'bodyTxt' => 'Body...', 'replyTo' => $this->_email, 'time_stamp' => '20111111010101', - ); + ); $result = $this->callAPIFailure('mailing_event', 'reply', $params, 'Queue event could not be found' ); @@ -166,13 +166,12 @@ class api_v3_MailingTest extends CiviUnitTestCase { 'hash' => 'Wrong Hash', 'email' => $this->_email, 'time_stamp' => '20111111010101', - ); + ); $result = $this->callAPIFailure('mailing_event', 'forward', $params, 'Queue event could not be found' ); } - //----------- civicrm_mailing_create ---------- }