~rgrjr/bookworm

c66190bf58bcd20a800d6b8bc0b83cfcbfb4ce30 — Bob Rogers 2 years ago a151a9d start-test-1
* test/book-3.pl:
   + Use the location.cgi page to move the others.
1 files changed, 17 insertions(+), 1 deletions(-)

M test/book-3.pl
M test/book-3.pl => test/book-3.pl +17 -1
@@ 15,7 15,7 @@ use Bookworm::Book;
use Bookworm::Author;
use Bookworm::Location;

use Test::More tests => 60;
use Test::More tests => 66;

my $tester = Bookworm::Test->new();



@@ 90,6 90,22 @@ $tester->run_script('cgi/book.cgi',
		    location_id => $box2->location_id,
		    doit => 'Update');
verify_location_books($box2, [ 'On Basilisk Station' ]);
verify_location_books($box1,
		      [ 'Honor of the Queen, The',
			'Short Victorious War, The' ]);

## Use the location.cgi page to move the others.
$tester->run_script('cgi/location.cgi',
		    book_id => $honor->book_id,
		    book_id => $war->book_id,
		    location_id => $box1->location_id,
		    destination_container_id => $box2->location_id,
		    doit => 'Move');
verify_location_books($box2,
		      [ 'On Basilisk Station',
			'Honor of the Queen, The',
			'Short Victorious War, The' ]);
verify_location_books($box1, [ ]);

## All done.
$tester->clean_up;