Commit graph

29 commits

Author SHA1 Message Date
Scott Walters
4ba683ddc3 if the optional tests run, the second create was failing. drop the table before creating it the second time. 2011-09-06 19:28:23 -04:00
Doug Bell
4864a75340 fix 11940: quickCSV chokes on newlines in data 2010-11-01 14:39:44 -05:00
Graham Knop
88e8fe77fb allow SQL statements to be added to test cleanup 2010-04-12 17:55:42 -05:00
Graham Knop
eb97a8d50e allow arbitrary subs to be added to test cleanup 2010-04-12 17:43:51 -05:00
Graham Knop
ab04037859 more tests for buildHashRef 2009-09-16 19:24:46 -05:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
e5ede77c29 use char instead of varchar 2009-02-18 03:18:20 +00:00
Graham Knop
bbdcb6475a quiet some warnings 2008-09-30 20:03:52 +00:00
Colin Kuskie
9c9da302f1 remove colons from END blocks, so they actually act like END blocks 2008-05-09 18:14:14 +00:00
Colin Kuskie
3f5d947282 Get rid of buildDataTableStructure. 2008-03-24 16:13:24 +00:00
Colin Kuskie
f3fd67378f Add a SQL method for building searchable queries.
Add tests for that method.
Convert Shop/Tax and Shop/Transaction to use that for their JSON generating methods.
2008-03-19 19:35:43 +00:00
Colin Kuskie
cb1b91d3be add a test for buildDataTableStructure 2008-03-19 18:50:07 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
Colin Kuskie
175304e915 always, always cleanup after myself in tests. sigh. 2007-11-09 22:43:19 +00:00
Colin Kuskie
57ff4405a6 add a prototype fix for not having InnoDB tables causing test errors 2007-11-09 22:35:58 +00:00
Colin Kuskie
83310ba311 update copyright on tests 2007-07-07 03:56:44 +00:00
Colin Kuskie
1412f023f1 Fixed a bug in WebGUI::User::profileField, where the check for whether or not
a profile field existed in the db always passed because it used quickArray in
scalar context.  Since quickArray always returns 1 element, this was always true
and it never returned undef like it was supposed to.

To fix this, I added a new method called quickScalar that returns the first column
from the row as a scalar.  It has a basic test in SQL.t.

Then there's the new test in User.t for coverage that exposed this problem, and
I also removed a whole slew of duplicate tests.
2007-03-04 04:18:59 +00:00
JT Smith
6766c63731 - Added the arrayRef() method to WebGUI::SQL::ResultSet, which is 12% faster
than the array() method.
 - Added more tests to the test suite.
2006-07-25 17:58:54 +00:00
Colin Kuskie
f704f7dfa4 tests for buildHashRefOfHashRefs 2006-05-12 23:25:28 +00:00
Colin Kuskie
024ae31899 add tests for buildArrayOfHashRefs 2006-05-12 23:13:27 +00:00
Colin Kuskie
a394f4f53e add 2nd dbh to test access on committed, uncommited data 2006-01-24 22:38:39 +00:00
Colin Kuskie
9228412788 commit and rollback transaction tests 2006-01-24 21:27:42 +00:00
Christian Hansen
83d59837fd Ported all tests 2006-01-17 22:06:21 +00:00
JT Smith
fab9f722e8 updating copyright year 2006-01-16 17:32:54 +00:00
Colin Kuskie
a5e3489f63 updated to work with new API, 33/33 2006-01-15 06:47:17 +00:00
JT Smith
20a4aebb13 first round at fixing tests to work with new session system 2006-01-12 22:49:38 +00:00
Colin Kuskie
6428bfd5d9 make error message case regex insensitive 2005-12-05 01:52:20 +00:00
Colin Kuskie
ba142f3888 add more quote tests and fix broken test for hash buckets 2005-12-05 01:49:05 +00:00
JT Smith
e017005b17 added automated code testing framework 2005-11-07 01:54:35 +00:00