Commit Graph
27 Commits
Author SHA1 Message Date
Bharat Mediratta 844e5573f0 Make sure that the dev is not using the same db for tests as they are for production (this one's for you, valiant!) 2008-12-03 03:49:45 +00:00
Bharat Mediratta 705698a425 Drop the database and rm -rf test/var instead of calling uninstall on
all modules.  This guarantees a clean start w/out worrying about
weirdness in the uninstaller code.
2008-12-03 03:44:48 +00:00
Bharat Mediratta 6f959deed9 Rename generic test.php to gallery_unit_test.php to make navigation to this file a little easier 2008-12-03 03:23:30 +00:00
Bharat Mediratta 89c4dadec2 Rename module::get_list() to module::installed() 2008-11-28 18:39:18 +00:00
Tim Almdal de56a33c9c Clean tag creation 2008-11-26 06:37:12 +00:00
Bharat Mediratta 18ce4a4c1f Actually call uninstall! 2008-11-26 05:43:43 +00:00
Tim Almdal 53f45b3079 Correct call to undefined uninstall_modules method. Should have been _uninstall_modules 2008-11-25 18:00:33 +00:00
Tim Almdal 2c20fed373 Dynamically locate modules to install for test 2008-11-25 15:01:17 +00:00
Tim Almdal b2af9ed470 Modify the test controller to call tag_installer::install and uninstall
Created the first tag unit test
2008-11-25 07:05:03 +00:00
Tim Almdal 7bcf7efc09 Remove the complexity of a interface driven user management module 2008-11-10 21:29:30 +00:00
Tim Almdal 0a8d5edbdc Early look at the User/Auth module refactoring. It will look for a driver based on the contents of the user/config/user.php file. And load that driver based on the User_Driver interface. There is a default User_Gallery_Driver class that will provide the actual interface implementation. Replacing this driver will allow a completely different user and authentication implementation to be used... hopefully will reduce issues with embedding and other user management systems. Removed from unit tests so they will still run. 2008-11-10 20:17:09 +00:00
Tim Almdal 359e28a50f Remove Auth module 2008-11-10 16:45:06 +00:00
Bharat Mediratta b006b1922c uninstall and reinstall the comment module, too 2008-11-10 00:26:52 +00:00
Tim Almdal d025155314 The start of an authentication module. This provides the installation and a basic install test. There is no interface at the moment to do authentication. It is dependent on the install of the user module. 2008-11-08 01:56:59 +00:00
Bharat Mediratta ef4b125796 Uninstall/reinstall modules in the right order and catch exceptions (fixes test failures) 2008-11-06 03:51:30 +00:00
Tim Almdal 134bac46d0 add installation unit tests and corrected a problem where the groups_users pivot table was not populated. 2008-11-05 22:10:35 +00:00
Chris Kelly dbf0fda99b better instructions/error handling 2008-11-05 21:52:22 +00:00
Bharat Mediratta ade1650846 Add a test to detect tabs in our code, and convert all tabs to spaces
so that the test passes.
2008-11-04 05:22:06 +00:00
Tim Almdal 8709c1965f White space correction 2008-11-04 02:19:46 +00:00
Bharat Mediratta 33e9cdad15 Uninstall/reinstall core on every test run (for now). 2008-11-03 02:05:59 +00:00
Bharat Mediratta df36d28b8a Make the unit_test database config the default so that our test runs don't
mess up the real database.
2008-11-03 00:07:38 +00:00
Bharat Mediratta e173f36bcb Create some basic infrastructure:
* item model (contains basic item info, similar to the gx version)
  * module model (has info about each module and which version of it is installed)
  * added a very basic unit test to verify that we can create an instance of item
  * Updated our test controller to require a unit_test db config and
    call core::install if it hasn't been done already.

New pattern:
  * core/helpers/core_installer.php creates core_installer helper.
    When we install a new module you call xxx_installer::install(),
    and when you want it to go away, you do xxx_installer::uninstall()

Create
2008-11-02 23:55:09 +00:00
Tim Almdal a38752607e replace a tab with the appropriate number of spaces 2008-11-02 21:39:10 +00:00
Bharat Mediratta bd8cd9364c Fix all our preambles to make the preamble test pass. 2008-11-01 22:43:28 +00:00
Bharat Mediratta 5a3731d0c6 Remove all html::specialchars(); we're not getting rendered in a
browser.
2008-11-01 10:45:51 +00:00
Bharat Mediratta 08f9822b72 Exclude demo tests 2008-11-01 09:02:24 +00:00
Bharat Mediratta f8b4c66906 Set up unit test framework. Tweak configuration so that it only runs in
command line mode, and expects to put data into test/var.  Create a module
to wrap it that generates a nice text-only view of the output.
2008-11-01 07:55:48 +00:00