public function setUp()
 {
     parent::setUp();
     $this->createAlert('Initial1', 'day');
     $this->createAlert('Initial2', 'week', array($this->idSite, $this->idSite2));
     $this->createAlert('Initial3', 'month', array($this->idSite2));
     $this->setUser();
 }
 public function setUp()
 {
     parent::setUp();
     // make sure templates will be found
     Plugin\Manager::getInstance()->loadPlugin('CustomAlerts');
     Plugin\Manager::getInstance()->loadPlugin('Morpheus');
     Translate::loadAllTranslations();
     \Piwik\Plugins\UsersManager\API::getInstance()->addUser('login1', 'p2kK2msAw1', '*****@*****.**');
     \Piwik\Plugins\UsersManager\API::getInstance()->addUser('login2', 'p2kK2msAw1', '*****@*****.**');
     \Piwik\Plugins\UsersManager\API::getInstance()->addUser('login3', 'p2kK2msAw1', '*****@*****.**');
     $this->notifier = new CustomNotifier();
 }
 public function setUp()
 {
     parent::setUp();
     // make sure templates will be found
     Plugin\Manager::getInstance()->loadPlugin('CustomAlerts');
     Plugin\Manager::getInstance()->loadPlugin('Morpheus');
     if (class_exists('\\Piwik\\Cache\\PluginAwareStaticCache')) {
         \Piwik\Cache\PluginAwareStaticCache::clearAll();
         // TODO remove this one
     } else {
         PiwikCache::flushAll();
     }
     Translate::loadAllTranslations();
     $this->controller = new CustomController();
 }
 public function setUp()
 {
     parent::setUp();
     $this->validator = new Validator();
 }
 public function setUp()
 {
     parent::setUp();
     $this->processor = new CustomProcessor();
 }
 public function setUp()
 {
     parent::setUp();
     $this->plugin = new CustomAlerts();
 }