add() alias to push() in Mp::Headers (wishlist 14142)
Fixed inheritance issues in Mp::Application - Mp::App now manipulates the caller's
@ISA directly, and doesn't inject itself into the chain (bugs 12923 & 14120)
+ Moved ar accessor to Apache::MVC (bug 14014)
2.10 Tue 19 Jul 2005
Multiple Template Paths added ( http://rt.cpan.org/NoAuth/Bug.html?id=13447 )
use base 'Maypole';
use Maypole::Headers;
+__PACKAGE__->mk_accessors( qw( ar ) );
+
BEGIN {
my $version;
eval 'use mod_perl2; $version = $mod_perl2::VERSION; ';
__PACKAGE__->mk_classdata($_) for qw( config init_done view_object );
__PACKAGE__->mk_accessors(
- qw( ar params query objects model_class template_args output path
+ qw( params query objects model_class template_args output path
args action template error document_encoding content_type table
headers_in headers_out )
);
use Test::More;
BEGIN {
if (eval { require Apache::Request }) {
- plan tests => 2;
+ plan tests => 3;
} else {
Test::More->import(skip_all =>"Apache::Request is not installed: $@");
}
require_ok('Apache::MVC');
ok($Apache::MVC::VERSION, 'defines $VERSION');
+ok(Apache::MVC->can('ar'), 'defines an "ar" accessor');
# defines $VERSION
# uses mod_perl
# @ISA = 'Maypole'
#!/usr/bin/perl
use strict;
use warnings;
-use Test::More tests => 108;
+use Test::More tests => 107;
use Test::MockModule;
# module compilation
ok(! Maypole->init_done, '... which is false by default');
ok(Maypole->can('view_object'), 'defines a view_object attribute');
is(Maypole->view_object, undef, '... which is undefined');
-ok(Maypole->can('ar'), 'defines an "ar" accessor');
+#ok(Maypole->can('ar'), 'defines an "ar" accessor'); moved to Apache::MVC
ok(Maypole->can('params'), 'defines a "params" accessor');
ok(Maypole->can('query'), 'defines a "query" accessor');
ok(Maypole->can('objects'), 'defines an "objects" accessor');