Commit Graph

89 Commits

Author SHA1 Message Date
Bharat Mediratta
de4d858dc2 Add in the missing 'error' count. 2010-08-08 14:56:28 -07:00
Bharat Mediratta
5151f0b865 Improve a comment. 2010-06-07 22:18:09 -07:00
Bharat Mediratta
c3c2b45280 Update the copyright to 2010. It's only 3 months into the year :-) 2010-03-03 10:15:34 -08:00
Bharat Mediratta
8763e475ad Move diff::compare to be test::diff 2010-02-09 15:52:38 -08:00
Bharat Mediratta
c050acf30a Fix lots of warnings that pop up when we're in E_STRICT mode. They're
mostly issues around uninitialized variables, calling non-static
functions in a static context, calling Session functions directly
instead of on its singleton, passing non-variables by reference, and
subclasses not using the same interface as the parent class.
2010-01-31 16:07:41 -08:00
Bharat Mediratta
61198c22aa Reload items after saving so that we convert their members to strings. 2010-01-22 01:10:52 -08:00
Bharat Mediratta
40b17474bb Add random_group(). 2010-01-21 19:08:29 -08:00
Bharat Mediratta
d3e3bbd713 improve comment. 2010-01-20 23:27:52 -08:00
Bharat Mediratta
8a1c17d869 Use the exception itself to print out a nice text message. 2010-01-20 23:14:51 -08:00
Bharat Mediratta
3f3159d25c Guard against missing/empty $description. 2010-01-20 23:05:51 -08:00
Bharat Mediratta
382214f3c1 Move the error page to the expected location for K24. 2010-01-20 23:00:39 -08:00
Bharat Mediratta
2a41e27d49 Add random_tag(). 2010-01-20 21:15:57 -08:00
Bharat Mediratta
66fbbab907 Add assert_array_equal_to_json(). 2010-01-20 00:06:36 -08:00
Bharat Mediratta
76da85a1a0 Extend Gallery_Unit_Test_Case instead of Unit_Test_Case. 2010-01-19 22:38:19 -08:00
Bharat Mediratta
c23bf312c4 Our own version of Unit_Test_Case that adds useful functions like
assert_equal_array().
2010-01-19 00:34:48 -08:00
Bharat Mediratta
f94fa25e08 Add starts_with(). 2010-01-18 22:51:52 -08:00
Bharat Mediratta
f492436317 Add random_name(). 2010-01-18 13:03:59 -08:00
Bharat Mediratta
dd5f08b703 Create xxx_unsaved() versions for the case where you want to tinker with the item before it gets saved. 2010-01-17 20:06:28 -08:00
Bharat Mediratta
c9fd8d751d Add random_photo() 2010-01-17 19:57:24 -08:00
Bharat Mediratta
53a17e3444 Add album title in random_album(). 2010-01-17 19:26:22 -08:00
Bharat Mediratta
c13d5c3513 Helper class for common test methods (like creating albums, photos,
etc).
2010-01-17 19:24:48 -08:00
Bharat Mediratta
3ef22d9d1a Add special output support for ORM_Validation_Exception 2010-01-17 18:09:31 -08:00
Bharat Mediratta
f70130b820 Special case output for ORM_Validation_Exceptions 2010-01-17 13:30:06 -08:00
Bharat Mediratta
bdd7c68ede Fix some function definitions (they should be static) 2009-12-22 15:41:47 -08:00
Bharat Mediratta
e94009e90d Add a helper for doing complex string comparisons 2009-12-21 17:26:04 -08:00
Bharat Mediratta
0c3fd9579f Stop using Kohana::lang. 2009-12-21 12:09:16 -08:00
Bharat Mediratta
287f79dd72 Updated for K24 2009-12-21 11:30:06 -08:00
Bharat Mediratta
4a417708f0 Kohana::show_404() -> throw new Kohana_404_Exception() 2009-11-25 13:51:33 -08:00
Tim Almdal
2a21f3bc80 Only install and activate modules that have tests to run. 2009-10-28 11:37:05 -07:00
Tim Almdal
703f22abcb Only look for tests that are in the active modules. Update the controller golden file to reflect the current location of files. 2009-10-23 09:41:33 -07:00
Tim Almdal
94cd07805d Change the gallery_unit test to only intall into the test environment, modules that are active in the non-test environment. 2009-10-23 07:49:14 -07:00
Bharat Mediratta
79754c2ef4 Run 'graphics::choose_default_toolkit();' to pick a toolkit, which we
normally do as part of a regular install.
2009-09-02 11:53:10 -07:00
Bharat Mediratta
0157ed4cfe Update test code to match the change made in 47810c9aec
where we adjust the site_domain in config.php
2009-06-10 00:53:16 -07:00
Bharat Mediratta
20a2d9f9a8 Reset the cascading file path properly before reinstalling. 2009-05-28 20:59:23 -07:00
Bharat Mediratta
3da5ee2f4c Print out exception traces for most errors 2009-05-28 18:21:39 -07:00
Bharat Mediratta
5e7cc75a29 Convert a few more references of APPPATH to MODPATH/gallery 2009-05-27 16:29:33 -07:00
Bharat Mediratta
88a3d43ba9 Update all references to the core application to now point to the
gallery module.  This type of mass update is prone to some small bugs.
2009-05-27 16:17:29 -07:00
Bharat Mediratta
7aed923908 Restructure the module lifecycle.
Install: <module>_installer::install() is called, any necessary tables
are created.

Activate: <module>_installer::activate() is called.  Module
controllers are routable, helpers are accessible, etc.  The module is
in use.

Deactivate: <module>_installer::deactivate() is called.  Module code
is not accessible or routable.  Module is *not* in use, but its tables
are still around.

Uninstall: <module>_installer::uninstall() is called.  Module is
completely removed from the database.

Admin > Modules will install and activate modules, but will only
deactivate (will NOT uninstall modules).
2009-05-26 05:28:59 +00:00
Bharat Mediratta
29e8bd5230 Fix security preambles 2009-05-18 03:55:34 +00:00
Bharat Mediratta
c87c6f6859 There's a new view for CLI unit test output in the Unit_Test library 2009-05-18 00:16:37 +00:00
Bharat Mediratta
5495037a3d Gee it's May already. Update copyright to 2009. 2009-05-13 20:04:58 +00:00
Bharat Mediratta
61d8a143ea Rejigger the way we do reinstalls while Kohana is running.
core_installer::install() now takes an $initial_install param that
allows us to enforce that we're doing a clean install.  Use this in
both the scaffolding and the unit test code.

Greatly simplify the scaffolding uninstall/reinstall code.
2009-03-19 02:35:51 +00:00
Bharat Mediratta
8dd24edf73 Fix correctness issue if there are no tables (list_tables will return null)
Clean out the module caches directly now that the module loading robustness code is gone.
2009-03-17 18:16:54 +00:00
Andy Staudacher
41600a982f Fix bootstrap / installation issue for unit test framework:
Install user module before installing other modules. E.g. local_import's installation routine depends on the user module to be installed.
2009-02-24 05:27:07 +00:00
Bharat Mediratta
f2cfd9798e Use xxx_test as the default database name. This means that we no
longer have to manually tweak database.php, yay!
2009-01-20 09:40:14 +00:00
Andy Staudacher
fd081159f1 Windows fixes: Use mkdir($path, 0777, true) instead of the unportable system("mkdir -p $path") 2009-01-08 06:57:04 +00:00
Bharat Mediratta
cd1d023754 Change the preamble for views in two ways:
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
   have short_tags enabled (the app won't work, but we need to make sure that we're
   still secure)
2009-01-01 00:23:29 +00:00
Bharat Mediratta
17f77b8de4 Remove module.info from infrastructure modules that are effectively
libraries that would ship with the core.

Refactor welcome.php to use the newly refactored module::available()
2008-12-22 04:49:30 +00:00
Bharat Mediratta
fe27bd1eb3 Change the way that we track modules.
Each module now has a "module.info" file that has information about
the module, including the core.  We can display the installed version,
and the version in the code.

Also take a first shot at a modules admin page.
2008-12-22 03:41:33 +00:00
Bharat Mediratta
05f26fa2d4 Fix a problem with magenta 2008-12-20 22:37:14 +00:00