/**
  * test using a handler from a plugin.
  *
  * @return void
  */
 public function testUsingPluginHandler()
 {
     App::build(array('Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)), App::RESET);
     CakePlugin::load('TestPlugin');
     Configure::write('Session', array('defaults' => 'cake', 'handler' => array('engine' => 'TestPlugin.TestPluginSession')));
     TestCakeSession::start();
     $this->assertTrue(TestCakeSession::started());
     TestCakeSession::destroy();
     $this->assertFalse(TestCakeSession::started());
     App::build();
 }
Exemple #2
0
 /**
  * test using a handler from a plugin.
  *
  * @return void
  */
 function testUsingPluginHandler()
 {
     App::build(array('libs' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'libs' . DS), 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)), true);
     Configure::write('Session', array('defaults' => 'cake', 'handler' => array('engine' => 'TestPlugin.TestPluginSession')));
     TestCakeSession::destroy();
     $this->assertTrue(TestCakeSession::started());
     App::build();
 }