add(array('experimentalFlexMailerEngine' => FALSE)); $hooks = \CRM_Utils_Hook::singleton(); $hooks->setHook('civicrm_alterMailParams', array($this, 'hook_alterMailParams')); } /** * @see CRM_Utils_Hook::alterMailParams */ public function hook_alterMailParams(&$params, $context = NULL) { $this->counts['hook_alterMailParams'] = 1; $this->assertEquals('civimail', $context); } public function tearDown() { parent::tearDown(); $this->assertNotEmpty($this->counts['hook_alterMailParams']); } // ---- Boilerplate ---- // The remainder of this class contains dummy stubs which make it easier to // work with the tests in an IDE. /** * Generate a fully-formatted mailing (with body_html content). * * @dataProvider urlTrackingExamples */ public function testUrlTracking( $inputHtml, $htmlUrlRegex, $textUrlRegex, $params ) { parent::testUrlTracking($inputHtml, $htmlUrlRegex, $textUrlRegex, $params); } public function testBasicHeaders() { parent::testBasicHeaders(); } public function testText() { parent::testText(); } public function testHtmlWithOpenTracking() { parent::testHtmlWithOpenTracking(); } public function testHtmlWithOpenAndUrlTracking() { parent::testHtmlWithOpenAndUrlTracking(); } }