/**
  * Testing creating a history table via doPOST method
  */
 public function testDoPOSTCreateHistoryTable()
 {
     $config = ConfigProvider::getInstance();
     $sessionProvider = $config->get('session.provider.name');
     $session = SessionProviderFactory::getInstance($sessionProvider);
     $front = new FrontController();
     $controller = new ListActiveRecordsController();
     $article = new Article();
     $article->setMaintainHistory(true);
     $securityParams = $controller->generateSecurityFields();
     $params = array('var1' => $securityParams[0], 'var2' => $securityParams[1], 'createHistoryTableBut' => true, 'createTableClass' => 'Alpha\\Model\\Article');
     $article->dropTable();
     $this->assertFalse($article->checkTableExists(true));
     $request = new Request(array('method' => 'POST', 'URI' => '/listactiverecords', 'params' => $params));
     $response = $front->process($request);
     $this->assertEquals(200, $response->getStatus(), 'Testing creating a history table via doPOST method');
     $this->assertTrue($article->checkTableExists(true));
 }