/**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     if (!$this->_controller) {
         $this->_controller = Inflector::singularize($this->plugin) . '_' . 'block_role_permissions';
     }
     parent::setUp();
 }
Пример #2
0
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->generateNc('ControlPanel.ControlPanel', array('components' => array('ControlPanel.ControlPanelLayout')));
     CakeSession::write('getNotificationError', null);
     $this->controller->Notification = $this->getMockForModel('Notifications.Notification', array('validCacheTime', 'ping', 'serialize', 'updateNotifications'));
     $this->_mockForReturn('Notifications.Notification', 'validCacheTime', false);
     $this->_mockForReturn('Notifications.Notification', 'ping', true);
 }
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     if (!$this->_controller) {
         $this->_controller = Inflector::singularize($this->plugin) . '_' . 'blocks';
     }
     if (!$this->_editController) {
         $this->_editController = $this->_controller;
     }
     parent::setUp();
 }
Пример #4
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     //ログアウト
     TestAuthGeneral::logout($this);
     parent::tearDown();
 }
Пример #5
0
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     NetCommonsControllerTestCase::loadTestPlugin($this, 'ControlPanel', 'TestControlPanel');
     $this->generateNc('TestControlPanel.TestControlPanelApp');
 }
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     NetCommonsControllerTestCase::loadTestPlugin($this, 'VisualCaptcha', 'TestVisualCaptcha');
     parent::setUp();
 }
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     UserAttribute::$userAttributes = null;
 }
Пример #8
0
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     NetCommonsControllerTestCase::loadTestPlugin($this, 'ControlPanel', 'TestControlPanel');
 }