public function test_RunAllTests() { if (date('G') == 23 || date('G') == 22) { echo "SKIPPED test_periodIsRange_dateIsLastN_MetadataAndNormalAPI() since it fails around midnight..."; $this->pass(); return; } parent::test_RunAllTests(); }
public function test_RunAllTests() { parent::test_RunAllTests(); // ---------------------------------------------- // Implementation Checks // ---------------------------------------------- // Verify that, when a segment is specified, only the requested report is processed // In this case, check that only the Custom Variables blobs have been processed if (Test_Integration::$apiTestingLevel != Test_Integration::NO_API_TESTING) { $tests = array('archive_blob_2010_01' => 28, 'archive_numeric_2010_01' => 138, 'archive_blob_2009_12' => 28, 'archive_numeric_2009_12' => (6 + 2 + 3) * 2); foreach ($tests as $table => $expectedRows) { $sql = "SELECT count(*) FROM " . Piwik_Common::prefixTable($table); $countBlobs = Zend_Registry::get('db')->fetchOne($sql); $this->assertEqual($expectedRows, $countBlobs, "{$table}: %s"); } } }
public function test_RunAllTests() { // get the segment used & make sure to do some extra tests before testing the API $this->getSegmentToTest(true); parent::test_RunAllTests(); }