コード例 #1
0
<?php

use Cake\Core\Configure;
use CvoTechnologies\Notifier\Notification;
Notification::configTransport(Configure::consume('NotificationTransport'));
Notification::config(Configure::consume('Notification'));
コード例 #2
0
 /**
  * Test dropping a transport configuration
  *
  * @return void
  */
 public function testDropTransport()
 {
     $result = Notification::configTransport('debug');
     $this->assertInternalType('array', $result, 'Should have config data');
     Notification::dropTransport('debug');
     $this->assertNull(Notification::configTransport('debug'), 'Should not exist.');
 }