Commit graph

13 commits

Author SHA1 Message Date
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