/**
  * 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();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     //ログアウト
     TestAuthGeneral::logout($this);
     parent::tearDown();
 }
 /**
  * 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;
 }
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     NetCommonsControllerTestCase::loadTestPlugin($this, 'ControlPanel', 'TestControlPanel');
 }