Koha-clms/t/lib
Jonathan Druart 1ae372980b Bug 14256: (follow-up) Check for unique constraint to regenerate random data
There were some issues in the previous patch. This patch fixes the
following:
- rename $value with $original_value
- remove $at_least_one_constraint_failed and $values_ok which make the
  code unnecessarily complicated
- the constraints have to be checked only if no original value is passed
- _buildColumnValue created a key to the default value hashref, it broke
  the test:
    last BUILD_VALUE if exists( $default_value->{$source} );

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit c5bc51d7d1)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2015-06-12 08:06:14 +12:00
..
Mocks.pm Bug 13274: Mock new_dbh in t::lib::Mocks 2014-11-19 09:50:32 -03:00
TestBuilder.pm Bug 14256: (follow-up) Check for unique constraint to regenerate random data 2015-06-12 08:06:14 +12:00