public function testSaveHandlerIsMutable()
 {
     $this->getModel($this->validatorMock);
     $this->config->setSaveHandler('redis');
     $this->assertEquals('user', $this->config->getSaveHandler());
     $this->assertEquals('redis', $this->config->getSaveHandlerName());
     $this->config->setSaveHandler('files');
     $this->assertEquals('files', $this->config->getSaveHandler());
     $this->assertEquals('files', $this->config->getSaveHandlerName());
 }
예제 #2
0
 public function testSaveHandlerIsMutable()
 {
     $this->_model->setSaveHandler('user');
     $this->assertEquals('user', $this->_model->getSaveHandler());
 }