diff --git a/tests/PHPUnit/Integration/OneVisitorTwoVisitsTest.php b/tests/PHPUnit/Integration/OneVisitorTwoVisitsTest.php index 40e3402f1c0640e5468b5a5fbe226bf343534fc6..c2035f98291f958808f473d5f74ca5e458b35841 100755 --- a/tests/PHPUnit/Integration/OneVisitorTwoVisitsTest.php +++ b/tests/PHPUnit/Integration/OneVisitorTwoVisitsTest.php @@ -160,18 +160,15 @@ class Test_Piwik_Integration_OneVisitorTwoVisits extends IntegrationTestCase $this->assertTrue(count($cache) > 0, "empty blob cache"); foreach ($cache as $name => $value) { - $this->assertTrue( - preg_match("/^Actions_actions(?:_[0-9]+)?$/", $name) === 1, - "Got blob name '$name' when pre-fetching Actions_actions." - ); + $this->assertTrue(strpos($name, "Actions_actions_url") === false, "found blob w/ name '$name'"); - if (preg_match("/^Actions_actions_[0-9]+$/", $name) === 1) + if (strpos($name, "Actions_actions_") !== false) { $foundSubtable = true; } } - $this->assertTrue($foundSubtable); + $this->assertTrue($foundSubtable, "Actions_actions subtable was not loaded"); } protected static function setUpWebsitesAndGoals()