mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 03:23:19 +00:00
Fix tests
Fix && add test for json dashboard controller Fix date formatting issue
This commit is contained in:
@@ -101,7 +101,7 @@ class Root implements ControllerProviderInterface
|
|||||||
{
|
{
|
||||||
$dashboard = new \module_report_dashboard($app, $app['phraseanet.user']);
|
$dashboard = new \module_report_dashboard($app, $app['phraseanet.user']);
|
||||||
|
|
||||||
if ('json' !== $request->getContentType()) {
|
if ('json' !== $request->getRequestFormat()) {
|
||||||
\User_Adapter::updateClientInfos($app, 4);
|
\User_Adapter::updateClientInfos($app, 4);
|
||||||
|
|
||||||
$dashboard->execute();
|
$dashboard->execute();
|
||||||
@@ -135,23 +135,18 @@ class Root implements ControllerProviderInterface
|
|||||||
|
|
||||||
public function initReport(Application $app, Request $request)
|
public function initReport(Application $app, Request $request)
|
||||||
{
|
{
|
||||||
$dmin = $request->request->get('dmin', '');
|
|
||||||
$dmax = $request->request->get('dmax', '');
|
|
||||||
$popbases = $request->request->get('popbases', array());
|
$popbases = $request->request->get('popbases', array());
|
||||||
|
|
||||||
if ($dmin == '') {
|
if ('' !== $dmin = $request->request->get('dmin', '')) {
|
||||||
$dmin = '01-' . date('m') . '-' . date('Y');
|
$dmin = '01-' . date('m') . '-' . date('Y');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dmax == '') {
|
if ('' !== $dmax = $request->request->get('dmax', '')) {
|
||||||
$dmax = date("d") . "-" . date("m") . "-" . date("Y");
|
$dmax = date("d") . "-" . date("m") . "-" . date("Y");
|
||||||
}
|
}
|
||||||
|
|
||||||
$td = explode('-', $dmin);
|
$dmin = \DateTime::createFromFormat('d-m-Y H:i:s', sprintf('%s 00:00:00', $dmin));
|
||||||
$dmin = date('Y-m-d H:i:s', mktime(0, 0, 0, $td[1], $td[0], $td[2]));
|
$dmax = \DateTime::createFromFormat('d-m-Y H:i:s', sprintf('%s 23:59:59', $dmax));
|
||||||
|
|
||||||
$td = explode('-', $dmax);
|
|
||||||
$dmax = date('Y-m-d H:i:s', mktime(23, 59, 59, $td[1], $td[0], $td[2]));
|
|
||||||
|
|
||||||
//get user's sbas & collections selection from popbases
|
//get user's sbas & collections selection from popbases
|
||||||
$selection = array();
|
$selection = array();
|
||||||
@@ -174,7 +169,9 @@ class Root implements ControllerProviderInterface
|
|||||||
return $app['twig']->render('report/ajax_report_content.html.twig', array(
|
return $app['twig']->render('report/ajax_report_content.html.twig', array(
|
||||||
'selection' => $selection,
|
'selection' => $selection,
|
||||||
'anonymous' => $app['phraseanet.registry']->get('GV_anonymousReport'),
|
'anonymous' => $app['phraseanet.registry']->get('GV_anonymousReport'),
|
||||||
'ajax' => true
|
'ajax' => true,
|
||||||
|
'dmin' => $dmin->format('Y-m-d H:i:s'),
|
||||||
|
'dmax' => $dmax->format('Y-m-d H:i:s'),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -508,9 +505,12 @@ class Root implements ControllerProviderInterface
|
|||||||
$activity->setBound("user", true);
|
$activity->setBound("user", true);
|
||||||
|
|
||||||
//set Limit
|
//set Limit
|
||||||
if ($activity->getEnableLimit()) {
|
if ($activity->getEnableLimit()
|
||||||
('' !== $page = $request->request->get('page', '')) && ('' !== $limit = $request->request->get('limit', '')) ?
|
&& ('' !== $page = $request->request->get('page', ''))
|
||||||
$activity->setLimit($page, $limit) : $activity->setLimit(false, false);
|
&& ('' !== $limit = $request->request->get('limit', ''))) {
|
||||||
|
$activity->setLimit($page, $limit);
|
||||||
|
} else {
|
||||||
|
$activity->setLimit(false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->request->get('printcsv') == 'on') {
|
if ($request->request->get('printcsv') == 'on') {
|
||||||
|
@@ -246,17 +246,17 @@ class module_report
|
|||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $d1, $d2, $sbas_id, $collist)
|
public function __construct(Application $app, $d1, $d2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
$d1 = \DateTime::createFromFormat('d-m-Y H:i:s', sprintf('%s 00:00:00', $d1));
|
|
||||||
$d2 = \DateTime::createFromFormat('d-m-Y H:i:s', sprintf('%s 23:59:59', $d2));
|
|
||||||
|
|
||||||
$this->app = $app;
|
$this->app = $app;
|
||||||
$this->dmin = $d1->format('Y-m-d H:i:s');
|
$this->dmin = $d1;
|
||||||
$this->dmax = $d2->format('Y-m-d H:i:s');
|
$this->dmax = $d2;
|
||||||
$this->sbas_id = $sbas_id;
|
$this->sbas_id = $sbas_id;
|
||||||
$this->list_coll_id = $collist;
|
$this->list_coll_id = $collist;
|
||||||
$this->user_id = $this->app['phraseanet.user']->get_id();
|
$this->user_id = $this->app['phraseanet.user']->get_id();
|
||||||
$this->periode = $this->app['date-formatter']->getPrettyString($d1)
|
$this->periode = sprintf(
|
||||||
. ' - ' . $this->app['date-formatter']->getPrettyString($d2);
|
'%s - %s ',
|
||||||
|
$this->app['date-formatter']->getPrettyString(new \DateTime($d1)),
|
||||||
|
$this->app['date-formatter']->getPrettyString(new \DateTime($d2))
|
||||||
|
);
|
||||||
$this->dbname = phrasea::sbas_names($sbas_id, $app);
|
$this->dbname = phrasea::sbas_names($sbas_id, $app);
|
||||||
$this->cor = $this->setCor();
|
$this->cor = $this->setCor();
|
||||||
$this->jour = $this->setDay();
|
$this->jour = $this->setDay();
|
||||||
|
@@ -25,6 +25,21 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
$this->assertTrue($response->isOk());
|
$this->assertTrue($response->isOk());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testRouteDashboardJson()
|
||||||
|
{
|
||||||
|
$auth = new \Session_Authentication_None(self::$DI['user']);
|
||||||
|
self::$DI['app']->openAccount($auth);
|
||||||
|
|
||||||
|
$this->XMLHTTPRequest('GET', '/report/dashboard', array(
|
||||||
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
|
'dmax' => $this->dmin->format('d-m-Y'),
|
||||||
|
));
|
||||||
|
|
||||||
|
$response = self::$DI['client']->getResponse();
|
||||||
|
|
||||||
|
$this->assertTrue($response->isOk());
|
||||||
|
}
|
||||||
|
|
||||||
public function testRouteInitReport()
|
public function testRouteInitReport()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/init', array('popbases' => array('1_1')));
|
self::$DI['client']->request('POST', '/report/init', array('popbases' => array('1_1')));
|
||||||
@@ -37,8 +52,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportConnexions()
|
public function testDoReportConnexions()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/connexions', array(
|
self::$DI['client']->request('POST', '/report/connexions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
@@ -55,8 +70,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportConnexionsPrintCSV()
|
public function testDoReportConnexionsPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/connexions', array(
|
self::$DI['client']->request('POST', '/report/connexions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -70,8 +85,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportConnexionsFilterColumns()
|
public function testDoReportConnexionsFilterColumns()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/connexions', array(
|
self::$DI['client']->request('POST', '/report/connexions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'list_column' => 'user ddate',
|
'list_column' => 'user ddate',
|
||||||
@@ -85,8 +100,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportConnexionsFilterResultOnOneColumn()
|
public function testDoReportConnexionsFilterResultOnOneColumn()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/connexions', array(
|
self::$DI['client']->request('POST', '/report/connexions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'filter_column' => 'user',
|
'filter_column' => 'user',
|
||||||
@@ -102,8 +117,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportConnexionsFilterConf()
|
public function testDoReportConnexionsFilterConf()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/connexions', array(
|
self::$DI['client']->request('POST', '/report/connexions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'conf' => 'on',
|
'conf' => 'on',
|
||||||
@@ -117,8 +132,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportConnexionsGroupBy()
|
public function testDoReportConnexionsGroupBy()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/connexions', array(
|
self::$DI['client']->request('POST', '/report/connexions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'groupby' => 'user',
|
'groupby' => 'user',
|
||||||
@@ -133,8 +148,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportQuestions()
|
public function testDoReportQuestions()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/questions', array(
|
self::$DI['client']->request('POST', '/report/questions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
@@ -151,8 +166,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportQuestionsPrintCSV()
|
public function testDoReportQuestionsPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/questions', array(
|
self::$DI['client']->request('POST', '/report/questions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -166,8 +181,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportQuestionsFilterColumns()
|
public function testDoReportQuestionsFilterColumns()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/questions', array(
|
self::$DI['client']->request('POST', '/report/questions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'list_column' => 'user ddate',
|
'list_column' => 'user ddate',
|
||||||
@@ -181,8 +196,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportQuestionsFilterResultOnOneColumn()
|
public function testDoReportQuestionsFilterResultOnOneColumn()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/questions', array(
|
self::$DI['client']->request('POST', '/report/questions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'filter_column' => 'user',
|
'filter_column' => 'user',
|
||||||
@@ -198,8 +213,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportQuestionsFilterConf()
|
public function testDoReportQuestionsFilterConf()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/questions', array(
|
self::$DI['client']->request('POST', '/report/questions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'conf' => 'on',
|
'conf' => 'on',
|
||||||
@@ -213,8 +228,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportQuestionsGroupBy()
|
public function testDoReportQuestionsGroupBy()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/questions', array(
|
self::$DI['client']->request('POST', '/report/questions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'groupby' => 'user',
|
'groupby' => 'user',
|
||||||
@@ -228,8 +243,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDownloads()
|
public function testDoReportDownloads()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/downloads', array(
|
self::$DI['client']->request('POST', '/report/downloads', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
@@ -246,8 +261,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDownloadsPrintCSV()
|
public function testDoReportDownloadsPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/downloads', array(
|
self::$DI['client']->request('POST', '/report/downloads', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -261,8 +276,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDownloadsFilterColumns()
|
public function testDoReportDownloadsFilterColumns()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/downloads', array(
|
self::$DI['client']->request('POST', '/report/downloads', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'list_column' => 'user ddate',
|
'list_column' => 'user ddate',
|
||||||
@@ -276,8 +291,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDownloadsFilterResultOnOneColumn()
|
public function testDoReportDownloadsFilterResultOnOneColumn()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/downloads', array(
|
self::$DI['client']->request('POST', '/report/downloads', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'filter_column' => 'user',
|
'filter_column' => 'user',
|
||||||
@@ -293,8 +308,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDownloadsFilterConf()
|
public function testDoReportDownloadsFilterConf()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/downloads', array(
|
self::$DI['client']->request('POST', '/report/downloads', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'conf' => 'on',
|
'conf' => 'on',
|
||||||
@@ -308,8 +323,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDownloadsGroupBy()
|
public function testDoReportDownloadsGroupBy()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/downloads', array(
|
self::$DI['client']->request('POST', '/report/downloads', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'groupby' => 'user',
|
'groupby' => 'user',
|
||||||
@@ -323,8 +338,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDocuments()
|
public function testDoReportDocuments()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/documents', array(
|
self::$DI['client']->request('POST', '/report/documents', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
@@ -342,8 +357,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDocumentsPrintCSV()
|
public function testDoReportDocumentsPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/documents', array(
|
self::$DI['client']->request('POST', '/report/documents', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -357,8 +372,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDocumentsFilterColumns()
|
public function testDoReportDocumentsFilterColumns()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/documents', array(
|
self::$DI['client']->request('POST', '/report/documents', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'list_column' => 'file mime',
|
'list_column' => 'file mime',
|
||||||
@@ -372,8 +387,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDocumentsFilterResultOnOneColumn()
|
public function testDoReportDocumentsFilterResultOnOneColumn()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/documents', array(
|
self::$DI['client']->request('POST', '/report/documents', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'filter_column' => 'mime',
|
'filter_column' => 'mime',
|
||||||
@@ -389,8 +404,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDocumentsFilterConf()
|
public function testDoReportDocumentsFilterConf()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/documents', array(
|
self::$DI['client']->request('POST', '/report/documents', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'conf' => 'on',
|
'conf' => 'on',
|
||||||
@@ -404,8 +419,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDocumentsGroupBy()
|
public function testDoReportDocumentsGroupBy()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/documents', array(
|
self::$DI['client']->request('POST', '/report/documents', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'groupby' => 'mime',
|
'groupby' => 'mime',
|
||||||
@@ -420,8 +435,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportClients()
|
public function testDoReportClients()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/clients', array(
|
self::$DI['client']->request('POST', '/report/clients', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
));
|
));
|
||||||
@@ -434,8 +449,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportClientPrintCSV()
|
public function testDoReportClientPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/clients', array(
|
self::$DI['client']->request('POST', '/report/clients', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -449,8 +464,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportConnexionsByUsers()
|
public function testDoReportConnexionsByUsers()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/users/connexions', array(
|
self::$DI['client']->request('POST', '/report/activity/users/connexions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'page' => 1,
|
'page' => 1,
|
||||||
@@ -465,8 +480,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportConnexionsByUsersCSV()
|
public function testDoReportConnexionsByUsersCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/users/connexions', array(
|
self::$DI['client']->request('POST', '/report/activity/users/connexions', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'page' => 1,
|
'page' => 1,
|
||||||
@@ -482,8 +497,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDownloadsByUsers()
|
public function testDoReportDownloadsByUsers()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/users/downloads', array(
|
self::$DI['client']->request('POST', '/report/activity/users/downloads', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'page' => 1,
|
'page' => 1,
|
||||||
@@ -498,8 +513,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportDownloadsByUsersCSV()
|
public function testDoReportDownloadsByUsersCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/users/downloads', array(
|
self::$DI['client']->request('POST', '/report/activity/users/downloads', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'page' => 1,
|
'page' => 1,
|
||||||
@@ -515,8 +530,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportBestOfQuestions()
|
public function testDoReportBestOfQuestions()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/questions/best-of', array(
|
self::$DI['client']->request('POST', '/report/activity/questions/best-of', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'limit' => 10,
|
'limit' => 10,
|
||||||
@@ -530,8 +545,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportBestOfQuestionsCSV()
|
public function testDoReportBestOfQuestionsCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/questions/best-of', array(
|
self::$DI['client']->request('POST', '/report/activity/questions/best-of', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'limit' => 10,
|
'limit' => 10,
|
||||||
@@ -546,8 +561,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportNoBestOfQuestions()
|
public function testDoReportNoBestOfQuestions()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/questions/no-best-of', array(
|
self::$DI['client']->request('POST', '/report/activity/questions/no-best-of', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'limit' => 10,
|
'limit' => 10,
|
||||||
@@ -561,8 +576,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportNoBestOfQuestionsCSV()
|
public function testDoReportNoBestOfQuestionsCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/questions/no-best-of', array(
|
self::$DI['client']->request('POST', '/report/activity/questions/no-best-of', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'limit' => 10,
|
'limit' => 10,
|
||||||
@@ -577,8 +592,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportSiteActiviyPerHours()
|
public function testDoReportSiteActiviyPerHours()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/instance/hours', array(
|
self::$DI['client']->request('POST', '/report/activity/instance/hours', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
));
|
));
|
||||||
@@ -591,8 +606,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportSiteActiviyPerHoursCSV()
|
public function testDoReportSiteActiviyPerHoursCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/instance/hours', array(
|
self::$DI['client']->request('POST', '/report/activity/instance/hours', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -606,8 +621,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportSiteActiviyPerDays()
|
public function testDoReportSiteActiviyPerDays()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/instance/days', array(
|
self::$DI['client']->request('POST', '/report/activity/instance/days', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
));
|
));
|
||||||
@@ -620,8 +635,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportSiteActiviyPerDaysCSV()
|
public function testDoReportSiteActiviyPerDaysCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/instance/days', array(
|
self::$DI['client']->request('POST', '/report/activity/instance/days', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -635,8 +650,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportPushedDocuments()
|
public function testDoReportPushedDocuments()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
@@ -653,8 +668,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportPushedDocumentsPrintCSV()
|
public function testDoReportPushedDocumentsPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -668,8 +683,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportPushedDocumentsFilterColumns()
|
public function testDoReportPushedDocumentsFilterColumns()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'list_column' => 'user ddate',
|
'list_column' => 'user ddate',
|
||||||
@@ -683,8 +698,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportPushedDocumentsFilterResultOnOneColumn()
|
public function testDoReportPushedDocumentsFilterResultOnOneColumn()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'filter_column' => 'user',
|
'filter_column' => 'user',
|
||||||
@@ -700,8 +715,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportPushedDocumentsFilterConf()
|
public function testDoReportPushedDocumentsFilterConf()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'conf' => 'on',
|
'conf' => 'on',
|
||||||
@@ -715,8 +730,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportPushedDocumentsGroupBy()
|
public function testDoReportPushedDocumentsGroupBy()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/pushed', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'groupby' => 'user',
|
'groupby' => 'user',
|
||||||
@@ -730,8 +745,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportAddedDocuments()
|
public function testDoReportAddedDocuments()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
@@ -748,8 +763,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportAddedDocumentsPrintCSV()
|
public function testDoReportAddedDocumentsPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -763,8 +778,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportAddedDocumentsFilterColumns()
|
public function testDoReportAddedDocumentsFilterColumns()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'list_column' => 'user ddate',
|
'list_column' => 'user ddate',
|
||||||
@@ -778,8 +793,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportAddedDocumentsFilterResultOnOneColumn()
|
public function testDoReportAddedDocumentsFilterResultOnOneColumn()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'filter_column' => 'user',
|
'filter_column' => 'user',
|
||||||
@@ -795,8 +810,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportAddedDocumentsFilterConf()
|
public function testDoReportAddedDocumentsFilterConf()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'conf' => 'on',
|
'conf' => 'on',
|
||||||
@@ -810,8 +825,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportAddedDocumentsGroupBy()
|
public function testDoReportAddedDocumentsGroupBy()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/added', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'groupby' => 'user',
|
'groupby' => 'user',
|
||||||
@@ -825,8 +840,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportEditedDocuments()
|
public function testDoReportEditedDocuments()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
@@ -843,8 +858,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportEditedDocumentsPrintCSV()
|
public function testDoReportEditedDocumentsPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -858,8 +873,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportEditedDocumentsFilterColumns()
|
public function testDoReportEditedDocumentsFilterColumns()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'list_column' => 'user ddate',
|
'list_column' => 'user ddate',
|
||||||
@@ -873,8 +888,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportEditedDocumentsFilterResultOnOneColumn()
|
public function testDoReportEditedDocumentsFilterResultOnOneColumn()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'filter_column' => 'user',
|
'filter_column' => 'user',
|
||||||
@@ -890,8 +905,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportEditedDocumentsFilterConf()
|
public function testDoReportEditedDocumentsFilterConf()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'conf' => 'on',
|
'conf' => 'on',
|
||||||
@@ -905,8 +920,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportEditedDocumentsGroupBy()
|
public function testDoReportEditedDocumentsGroupBy()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/edited', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'groupby' => 'user',
|
'groupby' => 'user',
|
||||||
@@ -920,8 +935,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportValidatedDocuments()
|
public function testDoReportValidatedDocuments()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
@@ -938,8 +953,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportValidatedDocumentsPrintCSV()
|
public function testDoReportValidatedDocumentsPrintCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'printcsv' => 'on',
|
'printcsv' => 'on',
|
||||||
@@ -953,8 +968,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportValidatedDocumentsFilterColumns()
|
public function testDoReportValidatedDocumentsFilterColumns()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'list_column' => 'user ddate',
|
'list_column' => 'user ddate',
|
||||||
@@ -968,8 +983,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportValidatedDocumentsFilterResultOnOneColumn()
|
public function testDoReportValidatedDocumentsFilterResultOnOneColumn()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'filter_column' => 'user',
|
'filter_column' => 'user',
|
||||||
@@ -985,8 +1000,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportValidatedDocumentsFilterConf()
|
public function testDoReportValidatedDocumentsFilterConf()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'conf' => 'on',
|
'conf' => 'on',
|
||||||
@@ -1000,8 +1015,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportValidatedDocumentsGroupBy()
|
public function testDoReportValidatedDocumentsGroupBy()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
self::$DI['client']->request('POST', '/report/activity/documents/validated', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'groupby' => 'user',
|
'groupby' => 'user',
|
||||||
@@ -1015,8 +1030,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserBadRequest()
|
public function testDoReportUserBadRequest()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
));
|
));
|
||||||
@@ -1030,8 +1045,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUser()
|
public function testDoReportUser()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'user' => self::$DI['user']->get_id(),
|
'user' => self::$DI['user']->get_id(),
|
||||||
@@ -1045,8 +1060,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromConnexion()
|
public function testDoReportUserFromConnexion()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'user' => self::$DI['user']->get_id(),
|
'user' => self::$DI['user']->get_id(),
|
||||||
@@ -1061,8 +1076,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromQuestion()
|
public function testDoReportUserFromQuestion()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'from' => 'ASK',
|
'from' => 'ASK',
|
||||||
@@ -1077,8 +1092,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromDownload()
|
public function testDoReportUserFromDownload()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'from' => 'GEN',
|
'from' => 'GEN',
|
||||||
@@ -1093,8 +1108,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromConnexionCSV()
|
public function testDoReportUserFromConnexionCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'from' => 'CNX',
|
'from' => 'CNX',
|
||||||
@@ -1110,8 +1125,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromQuestionCSV()
|
public function testDoReportUserFromQuestionCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'from' => 'ASK',
|
'from' => 'ASK',
|
||||||
@@ -1127,8 +1142,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromDownloadCSV()
|
public function testDoReportUserFromDownloadCSV()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'from' => 'GEN',
|
'from' => 'GEN',
|
||||||
@@ -1144,8 +1159,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromDownloadOnCustomField()
|
public function testDoReportUserFromDownloadOnCustomField()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'from' => 'GEN',
|
'from' => 'GEN',
|
||||||
@@ -1161,8 +1176,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromConnexionOnCustomField()
|
public function testDoReportUserFromConnexionOnCustomField()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'from' => 'CNX',
|
'from' => 'CNX',
|
||||||
@@ -1178,8 +1193,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportUserFromQuestionOnCustomField()
|
public function testDoReportUserFromQuestionOnCustomField()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/user', array(
|
self::$DI['client']->request('POST', '/report/informations/user', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'from' => 'ASK',
|
'from' => 'ASK',
|
||||||
@@ -1195,8 +1210,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportInformationsBrowserBadRequest()
|
public function testDoReportInformationsBrowserBadRequest()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/browser', array(
|
self::$DI['client']->request('POST', '/report/informations/browser', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
));
|
));
|
||||||
@@ -1210,8 +1225,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportInfomationsBrowser()
|
public function testDoReportInfomationsBrowser()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/browser', array(
|
self::$DI['client']->request('POST', '/report/informations/browser', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'user' => 'chrome',
|
'user' => 'chrome',
|
||||||
@@ -1225,8 +1240,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportInfomationsDocumentsNotFound()
|
public function testDoReportInfomationsDocumentsNotFound()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/document', array(
|
self::$DI['client']->request('POST', '/report/informations/document', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'sbasid' => 0,
|
'sbasid' => 0,
|
||||||
@@ -1242,8 +1257,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportInfomationsDocuments()
|
public function testDoReportInfomationsDocuments()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/document', array(
|
self::$DI['client']->request('POST', '/report/informations/document', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'sbasid' => self::$DI['record_1']->get_sbas_id(),
|
'sbasid' => self::$DI['record_1']->get_sbas_id(),
|
||||||
@@ -1258,8 +1273,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportInfomationsDocumentsFromTool()
|
public function testDoReportInfomationsDocumentsFromTool()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/document', array(
|
self::$DI['client']->request('POST', '/report/informations/document', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'sbasid' => self::$DI['record_1']->get_sbas_id(),
|
'sbasid' => self::$DI['record_1']->get_sbas_id(),
|
||||||
@@ -1275,8 +1290,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportInfomationsDocumentsFromDashboard()
|
public function testDoReportInfomationsDocumentsFromDashboard()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/document', array(
|
self::$DI['client']->request('POST', '/report/informations/document', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'sbasid' => self::$DI['record_1']->get_sbas_id(),
|
'sbasid' => self::$DI['record_1']->get_sbas_id(),
|
||||||
@@ -1292,8 +1307,8 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
public function testDoReportInfomationsDocumentsFromOther()
|
public function testDoReportInfomationsDocumentsFromOther()
|
||||||
{
|
{
|
||||||
self::$DI['client']->request('POST', '/report/informations/document', array(
|
self::$DI['client']->request('POST', '/report/informations/document', array(
|
||||||
'dmin' => $this->dmin->format('Y-m-d H:i:s'),
|
'dmin' => $this->dmin->format('d-m-Y'),
|
||||||
'dmax' => $this->dmax->format('Y-m-d H:i:s'),
|
'dmax' => $this->dmax->format('d-m-Y'),
|
||||||
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
'sbasid' => self::$DI['collection']->get_sbas_id(),
|
||||||
'collection' => self::$DI['collection']->get_coll_id(),
|
'collection' => self::$DI['collection']->get_coll_id(),
|
||||||
'sbasid' => self::$DI['record_1']->get_sbas_id(),
|
'sbasid' => self::$DI['record_1']->get_sbas_id(),
|
||||||
|
Reference in New Issue
Block a user