Changeset 1063 for trunk/t/21_rdf.t
- Timestamp:
- 06/10/07 18:31:17 (18 months ago)
- Files:
-
- 1 modified
-
trunk/t/21_rdf.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/21_rdf.t
r1060 r1063 30 30 31 31 32 my $wiki = OpenGuides::Utils->make_wiki_object( config => $config ); 32 my $guide = OpenGuides->new( config => $config ); 33 my $wiki = $guide->wiki; 33 34 34 35 # Clear out the database from any previous runs. … … 44 45 45 46 # 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 {47 OpenGuides::Test->write_data( 48 guide => $guide, 49 node => "Calthorpe Arms", 50 content => "CAMRA-approved pub near King's Cross", 50 51 comment => "Stub page, please update!", 51 52 username => "Kake", 52 53 postcode => "WC1X 8JR", 53 locale => [ "Bloomsbury", "St Pancras" ],54 locales => "Bloomsbury\r\nSt Pancras", 54 55 phone => "test phone number", 55 56 website => "test website", 56 opening_hours_text=> "test hours",57 hours_text => "test hours", 57 58 latitude => "51.524193", 58 59 longitude => "-0.114436", 59 60 summary => "a nice pub", 60 }61 61 ); 62 62 … … 106 106 $config->default_city( "" ); 107 107 $config->default_country( "" ); 108 my$guide = OpenGuides->new( config => $config );108 $guide = OpenGuides->new( config => $config ); 109 109 OpenGuides::Test->write_data( 110 110 guide => $guide,
