Implement browsing of newest apps in the object manager infrastructure

This commit is contained in:
Chris Morgan
2007-07-16 03:04:07 +00:00
committed by WineHQ
parent 7c76ba42eb
commit 88a832199d
5 changed files with 150 additions and 70 deletions

View File

@@ -10,6 +10,7 @@ require_once(BASE.'include/maintainer.php');
require_once(BASE.'include/testData_queue.php');
require_once(BASE.'include/version_queue.php');
require_once(BASE.'include/application_queue.php');
require_once(BASE.'include/browse_newest_apps.php');
/* internal function */
function test_class($sClassName, $aTestMethods)
@@ -25,6 +26,11 @@ function test_class($sClassName, $aTestMethods)
return false;
}
// TODO: work around for 'browse_newest_apps' class
// since we can't create a new database object of browse_newest_apps
if($sClassName == "browse_newest_apps")
return true;
/* Set up test user */
global $test_email, $test_password;
if(!$oUser = create_and_login_user())
@@ -278,6 +284,7 @@ function test_object_methods()
$aTestClasses = array("application",
"application_queue",
"browse_newest_apps",
"distribution",
"downloadurl",
"maintainer",