Cleanup after unit tests
This commit is contained in:
committed by
WineHQ
parent
57c4b64986
commit
1aef926d97
@@ -197,6 +197,8 @@ function test_application_getWithRating()
|
||||
return false;
|
||||
}
|
||||
|
||||
delete_app_and_user($oApp, $oUser);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -302,6 +302,8 @@ function test_superMaintainerOnAppSubmit()
|
||||
|
||||
Maintainer::deleteMaintainer($oUser, $iAppId);
|
||||
|
||||
$oApp->delete();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,7 @@ function test_url_update()
|
||||
$bSuccess = true; // default to success until we detect failure
|
||||
|
||||
/* Log in */
|
||||
$oUser = new User();
|
||||
if($retval = $oUser->login($test_email, $test_password) != SUCCESS)
|
||||
if(!$oUser = create_and_login_user())
|
||||
{
|
||||
echo "Received '$retval' instead of SUCCESS('".SUCCESS."').";
|
||||
return FALSE;
|
||||
@@ -61,6 +60,7 @@ function test_url_update()
|
||||
}
|
||||
|
||||
$oUrl->delete(TRUE);
|
||||
$oUser->delete();
|
||||
|
||||
return $bSuccess;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user