Changeset 587 for trunk/t/41_deletion.t


Ignore:
Timestamp:
Dec 14, 2004, 6:46:00 PM (17 years ago)
Author:
kake
Message:

Encapsulate config data in OpenGuides::Config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/41_deletion.t

    r586 r587  
    77
    88my $config = OpenGuides::Test->make_basic_config;
    9 $config->{_}->{site_name} = "Test Site";
    10 $config->{_}->{script_url} = "/";
     9$config->site_name( "Test Site" );
     10$config->script_url( "/" );
    1111
    1212# White box testing - we know that OpenGuides::Template only actually uses
     
    2525unlike( $output, qr/action=delete/,
    2626        "doesn't offer page deletion link by default" );
    27 $config->{_}->{enable_page_deletion} = "y";
     27$config->enable_page_deletion( "y" );
    2828$output = OpenGuides::Template->output(
    2929    wiki     => $fake_wiki,
     
    3333like( $output, qr/action=delete/,
    3434      "...but does when enable_page_deletion is set to 'y'" );
    35 $config->{_}->{enable_page_deletion} = "1";
     35$config->enable_page_deletion( 1 );
    3636$output = OpenGuides::Template->output(
    3737    wiki     => $fake_wiki,
Note: See TracChangeset for help on using the changeset viewer.