Report-VU : fix tests

This commit is contained in:
Jean-Yves Gaulier
2014-11-03 12:24:38 +01:00
parent 6a1e161701
commit a353dc4de6
4 changed files with 22 additions and 130 deletions

View File

@@ -60,8 +60,6 @@ class activityTest extends PhraseanetPHPUnitAuthenticatedAbstract
$this->activity($report, $sbasid, $colllist);
$this->activityDay($report, $sbasid, $colllist);
$this->activityQuestion($report, $sbasid, $colllist);
$this->allDownloadByUserBase($report);
$this->allQuestion($report);
$this->detailDownload($report);
$this->downloadByBaseByDay($report);
$this->otherTest($report);
@@ -82,12 +80,6 @@ class activityTest extends PhraseanetPHPUnitAuthenticatedAbstract
$this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $activityHours);
}
public function allQuestion($report)
{
$allQuestion = $report->getAllQuestionByUser(self::$DI['user']->get_id(), 'usrid');
$this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $allQuestion);
}
public function topQuestion($report)
{
$topQuestion = $report->getTopQuestion();
@@ -96,12 +88,6 @@ class activityTest extends PhraseanetPHPUnitAuthenticatedAbstract
$this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $topQuestion2);
}
public function allDownloadByUserBase($report)
{
$allDownload = $report->getAllDownloadByUserBase(self::$DI['user']->get_id());
$this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $allDownload);
}
public function downloadByBaseByDay($report)
{
$dlBaseDay = $report->getDownloadByBaseByDay();