"Fossies" - the Fresh Open Source Software Archive

Member "eprints3.4-3.4.4/tests/31_simple_search.pl" (7 Aug 2022, 1647 Bytes) of package /linux/www/eprints3.4-3.4.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "31_simple_search.pl": 3.4-3.4.3_vs_3.4-3.4.4.

    1 use strict;
    2 use Test::More tests => 4;
    3 
    4 BEGIN { use_ok( "EPrints" ); }
    5 BEGIN { use_ok( "EPrints::Test" ); }
    6 BEGIN { use_ok( "EPrints::ScreenProcessor" ); }
    7 
    8 my $session = EPrints::Test::get_test_session();
    9 
   10 # find an example eprint
   11 my $dataset = $session->dataset( "eprint" );
   12 my( $eprintid ) = @{ $dataset->get_item_ids( $session ) };
   13 
   14 $session = EPrints::Test::OnlineSession->new( $session, {
   15     method => "GET",
   16     path => "/cgi/search/simple",
   17     query => {
   18         q => "demonstration",
   19         _action_search => "Search",
   20         _order => "bytitle",
   21     },
   22 });
   23 
   24 EPrints::ScreenProcessor->process( 
   25     session => $session, 
   26     url => $session->config( "perl_url" )."/search/simple",
   27     screenid => "Search",
   28     searchid => "simple",
   29     dataset => $session->dataset( "archive" ),
   30 );
   31 
   32 #print STDERR $session->test_get_stdout;
   33 
   34 ok(1);
   35 
   36 =head1 COPYRIGHT
   37 
   38 =for COPYRIGHT BEGIN
   39 
   40 Copyright 2022 University of Southampton.
   41 EPrints 3.4 is supplied by EPrints Services.
   42 
   43 http://www.eprints.org/eprints-3.4/
   44 
   45 =for COPYRIGHT END
   46 
   47 =for LICENSE BEGIN
   48 
   49 This file is part of EPrints 3.4 L<http://www.eprints.org/>.
   50 
   51 EPrints 3.4 and this file are released under the terms of the
   52 GNU Lesser General Public License version 3 as published by
   53 the Free Software Foundation unless otherwise stated.
   54 
   55 EPrints 3.4 is distributed in the hope that it will be useful,
   56 but WITHOUT ANY WARRANTY; without even the implied warranty of
   57 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   58 See the GNU Lesser General Public License for more details.
   59 
   60 You should have received a copy of the GNU Lesser General Public
   61 License along with EPrints 3.4.
   62 If not, see L<http://www.gnu.org/licenses/>.
   63 
   64 =for LICENSE END
   65