Bug 15339: TestBuilder warnings (tests)
authorMartin Persson <xarragon@gmail.com>
Wed, 9 Dec 2015 10:31:12 +0000 (11:31 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Sep 2017 16:35:06 +0000 (13:35 -0300)
commitd53f7607b57d253e7f95bb6c2d699ed3e93c84b1
tree444917c4daab71cb32435b5cfbb8aea03539691a
parentebd1039bbdb041c7691eaaa2a977af9cd1687d3e
Bug 15339: TestBuilder warnings (tests)

Makes TestBuilder::build() alert the user when unreognized parameters
are passed, which happens when the user supplies the column values
directly, forgetting the 'value' hash.

This patch contains the tests that doubles as a demonstration
of the kind of error the patch is intended to prevent.

Sponsored-By: Halland County Library
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/TestBuilder.t