Skip to content
Extraits de code Groupes Projets
Valider 34eea8b8 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Fixing integration tests.

parent 306ea28d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -295,7 +295,7 @@ class Fixture extends PHPUnit_Framework_Assert ...@@ -295,7 +295,7 @@ class Fixture extends PHPUnit_Framework_Assert
// Manually set the website creation date to a day earlier than the earliest day we record stats for // Manually set the website creation date to a day earlier than the earliest day we record stats for
Db::get()->update(Common::prefixTable("site"), Db::get()->update(Common::prefixTable("site"),
array('ts_created' => Date::factory($dateTime)->subDay(30)->getDatetime()), array('ts_created' => Date::factory($dateTime)->subDay(1)->getDatetime()),
"idsite = $idSite" "idsite = $idSite"
); );
......
...@@ -28,6 +28,12 @@ class UITestFixture extends OmniFixture ...@@ -28,6 +28,12 @@ class UITestFixture extends OmniFixture
{ {
parent::setUp(); parent::setUp();
// make sure site has an early enough creation date (for period selector tests)
Db::get()->update(Common::prefixTable("site"),
array('ts_created' => '2011-01-01'),
"idsite = 1"
);
$this->addOverlayVisits(); $this->addOverlayVisits();
$this->addNewSitesForSiteSelector(); $this->addNewSitesForSiteSelector();
$this->createEmptyDashboard(); $this->createEmptyDashboard();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter