Commit Graph

43 Commits

Author SHA1 Message Date
Alexander Nicolaysen Sørnes
11ecfa230b Add allowAnonymousSubmissions(). objectManager checks the return value of this new function and
exists with an error during certain actions if the user is not logged in and the function returns
false
2007-04-29 23:00:01 +00:00
Alexander Nicolaysen Sørnes
b11cce6711 Use objectManager to submit and process applications. Remove now unused appsubmit.php
admin/adminAppQueue.php
2007-04-24 23:48:14 +00:00
Alexander Nicolaysen Sørnes
8cf53f1679 Use mustBeQueued() to determine unqueueing in objectManager 2007-04-22 00:39:53 +00:00
Alexander Nicolaysen Sørnes
dad5de17b1 Test version/testData queues. Test version_queue and testData_queue with the objectManager
tests
2007-04-21 00:58:08 +00:00
Alexander Nicolaysen Sørnes
b584fe1df7 Fix maintainer listing for versions. getMaintainersForAppIdVersionId() did not check that
additional entries had a superMaintainer = 1 so a maintainer of one version would be listed
as the maintainer for all versions of the application. Correct that issue and update the
unit test.
2007-04-16 23:19:44 +00:00
Alexander Nicolaysen Sørnes
ba3f966da4 test maintainer::getMaintainersForAppIdVersionId() 2007-04-08 23:06:27 +00:00
Alexander Nicolaysen Sørnes
9de4e9b63b Test version class in objectManager tests 2007-04-08 23:01:22 +00:00
Alexander Nicolaysen Sørnes
eeaf2c3642 Add test for testData::getNewestTestIdFromVersionId() 2007-04-03 00:05:35 +00:00
Alexander Nicolaysen Sørnes
6b9abce52c Avoid overlapping maintainer entries. When a user becomes a super maintainer of an
application remove all of their maintainer entries for the application versions. Update unit
tests to test maintainter overlapping.
2007-04-01 00:08:12 +00:00
Chris Morgan
e2b15c0566 Keep track of global success or failure and print out a summary success or failure when the
tests are complete. Makes it less likely that a test failure will be missed.
2007-03-31 17:12:55 +00:00
Alexander Nicolaysen Sørnes
c545581571 objectManager, add rejection support. Add support in objectManager for handling rejected
data.
2007-03-24 18:30:16 +00:00
Alexander Nicolaysen Sørnes
7d6772b5b1 Test more classes with objectManager 2007-03-24 02:04:16 +00:00
Alexander Nicolaysen Sørnes
ed7026be6e Let objectManager output table headers. A class returns an array of header cells and then
the objectManager adds an edit column if appropriate.
2007-03-17 21:04:43 +00:00
Alexander Nicolaysen Sørnes
641e1c32f6 Test objectGetEntries() in the objectManager tests 2007-03-17 00:50:10 +00:00
Alexander Nicolaysen Sørnes
fef587a60e Fix appData::listSubmittedBy() to run faster. Add a unit test for appData::listSubmittedBy() 2007-03-15 23:43:46 +00:00
Alexander Nicolaysen Sørnes
fc47fdabcd Test more objectManager functions 2007-03-13 21:05:11 +00:00
Alexander Nicolaysen Sørnes
0ad148f69f Add and use objectManager to display and edit vendors and distributions. Based on a patch by
Chris Morgan
2007-02-03 19:03:42 +00:00
Alexander Nicolaysen Sørnes
1aef926d97 Cleanup after unit tests 2007-01-27 22:58:58 +00:00
Alexander Nicolaysen Sørnes
83164089ae Disallowid of 0 in deleteMaintainersForVersion(). Add a unit test to ensure that
deleteMaintainersForVersion() behaves properly.
2007-01-24 04:10:05 +00:00
Alexander Nicolaysen Sørnes
a81ce02877 Allow maintainer requests on version submission 2007-01-20 17:41:43 +00:00
Alexander Nicolaysen Sørnes
25fd2a1dcb Unit test for url::update() 2007-01-19 01:41:01 +00:00
Chris Morgan
3eca785210 filter_gpc() should report success or failure, a higher level function should take care of calling out to an error page.
Add a unit test for filter_gpc() and test filtering success, failure and test that the filtering of html and normal strings
properly preserves tags for html strings and strips them from normal strings
2007-01-06 06:27:50 +00:00
Francois Gouget
41fce37200 Assorted spelling fixes 2006-12-31 19:39:41 +00:00
Alexander Nicolaysen Sørnes
8786673db6 Allow the user to tick a checkbox upon application submission, indication
whether he would like to become a super maintainer of the application.  The
request is processed along with the application. Also add a unit test that
tests maintainer requests submitted along with an application.
2006-12-09 05:07:25 +00:00
WineHQ
9643c80288 Authors: Alexander Nicolaysen Sørnes <alex@thehandofagony.com>, Chris Morgan <cmorgan@alum.wpi.edu>
Make sure that a maintainer entry is not deleted incorrectly in Maintainer::unQueue().  If
a request has already been accepted, it is not a duplicate. Add a unit test to test the behavior of Maintainer::unQueue() on
an already unqueued maintainer.
2006-12-03 16:26:38 +00:00
Chris Morgan
c19a471bd5 Unit tests should disable sending email before they execute, we don't want any accidental emails sent when developers are
running the unit tests to verify functionality. Add commented out example code that will enable developers to disable email via
a define in include/config.php
2006-12-02 19:44:31 +00:00
WineHQ
b858e2ba53 Unit tests should run with E_ALL so we can detect all errors. Fix dozens of errors that popped up after enabling all errors. 2006-11-25 17:24:44 +00:00
EA Durbin
7532d9091e Application::countWithRating() and getWithRating() should avoid queued applications. Add unit test
to ensure that we don't include queued applications
2006-09-30 01:31:04 +00:00
Chris Morgan
74fb6b5bd8 Flush the error log before performing the error log test, otherwise pending errors can throw the tests error count off
and cause it to improperly fail
2006-09-27 02:47:52 +00:00
EA Durbin
d8fe952bb1 Add the ability to browse applications by rating and a unit test for the added Application::getWithRating() 2006-09-27 02:44:16 +00:00
WineHQ
47e7ad72af Authors: "EA Durbin" <ead1234@hotmail.com>, Chris Morgan <cmorgan@alum.wpi.edu>
Application::delete() should retrieve the applications versions immediately prior to deleting to ensure that
an application object created prior to its child versions doesn't leave orphaned versions. Add unit test for
Application::delete() to test for the offending behavior.
2006-09-26 02:05:55 +00:00
EA Durbin
988be2f138 Fix a misnamed variable in image::resize_image_border() and add a unit test to make sure we call this function to test it 2006-08-31 02:23:01 +00:00
Chris Morgan
cef2aec209 Start to move maintainer related functions into maintainer class and separate maintainer related queries and logic from
display code. Also move maintainer related code from the user class. Fix up unit tests to work with the new maintainer class.
2006-07-24 16:20:40 +00:00
Chris Morgan
a651a3cdf3 Modify query_error() to log errors to a database table instead of displaying them on the screen. This should
let us more easily debug difficult or intermittent issues that users may not report. Add a cron to report logged
errors to appdb admins every night.  Implement some basic unit tests for the new error logging code
2006-07-19 16:37:54 +00:00
Chris Morgan
0019810922 Rename include/db.php to include/query.php, all of the functions in db.php were named query_*(). Rename test_db.php to
test_query.php to match the rename of include/db.php.  Modify include/incl.php to include query.php instead of db.php
2006-07-17 20:56:07 +00:00
Chris Morgan
a41a3577ce Remove the application created to perform the unit test so we don't 'leak' dummy applications 2006-07-17 20:41:18 +00:00
Chris Morgan
0b9a5b4e94 Merge appMaintainerQueue table into appMaintainers table. This simplifies the handling of queued vs.
unqueued maintainers and removes a table from the database
2006-07-16 16:53:08 +00:00
Chris Morgan
07d12874d8 Protect unit_test directory from access with .htaccess containing 'deny from all'. Suggestion
by Jonathan Ernst <jonathan@ernstfamily.ch>
2006-07-07 15:57:11 +00:00
Chris Morgan
ea02b57c25 Move getAppsFromUserId() to user::getAppsMaintained(). Also implement a unit test for
user::getAppsMaintained()
2006-07-06 22:08:37 +00:00
Chris Morgan
c4caf6c85f Rename image class variables to match our current naming convention. Implement a unit test for
the image class
2006-06-30 19:42:39 +00:00
Chris Morgan
e6458694f4 Unit tests for user::update_password() and user::getMaintainerCount() 2006-06-27 19:07:52 +00:00
Chris Morgan
f3c64ff48f Unit test for query_parameters(), fix bugs in query_parameters() found by the unit test 2006-06-27 16:39:40 +00:00
Chris Morgan
98ba61db03 Clean up user class. Implement start of unit testing framework for appdb.
Implement start of user class unit test.
2006-06-27 03:59:16 +00:00