Changeset 1063 for trunk/t/21_rdf.t

Show
Ignore:
Timestamp:
06/10/07 18:31:17 (18 months ago)
Author:
ilmari
Message:

Convert t/21_rdf.t to use OpenGuides::Test->write_data and extend this as needed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/t/21_rdf.t

    r1060 r1063  
    3030 
    3131 
    32 my $wiki = OpenGuides::Utils->make_wiki_object( config => $config ); 
     32my $guide = OpenGuides->new( config => $config ); 
     33my $wiki = $guide->wiki; 
    3334 
    3435# Clear out the database from any previous runs. 
     
    4445 
    4546# Test the data for a node that exists. 
    46 $wiki->write_node( "Calthorpe Arms", 
    47     "CAMRA-approved pub near King's Cross", 
    48     undef, 
    49     { 
     47OpenGuides::Test->write_data( 
     48        guide              => $guide, 
     49        node               => "Calthorpe Arms", 
     50        content            => "CAMRA-approved pub near King's Cross", 
    5051        comment            => "Stub page, please update!", 
    5152        username           => "Kake", 
    5253        postcode           => "WC1X 8JR", 
    53         locale             => [ "Bloomsbury", "St Pancras" ], 
     54        locales            => "Bloomsbury\r\nSt Pancras", 
    5455        phone              => "test phone number", 
    5556        website            => "test website", 
    56         opening_hours_text => "test hours", 
     57        hours_text        => "test hours", 
    5758        latitude           => "51.524193", 
    5859        longitude          => "-0.114436", 
    5960        summary            => "a nice pub", 
    60     } 
    6161); 
    6262 
     
    106106$config->default_city( "" ); 
    107107$config->default_country( "" ); 
    108 my $guide = OpenGuides->new( config => $config ); 
     108$guide = OpenGuides->new( config => $config ); 
    109109OpenGuides::Test->write_data( 
    110110                                guide => $guide,