2014-12-03 00:02:45 +01:00
|
|
|
#!perl -w
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
sub register_tests {
|
|
|
|
my ( $self ) = @_;
|
|
|
|
$self->register_test('test_content_log_file');
|
2014-12-03 00:08:07 +01:00
|
|
|
$self->register_test('test_content_log_enabled');
|
2014-12-03 00:13:00 +01:00
|
|
|
$self->register_test('test_exclude');
|
2014-12-03 00:02:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_content_log_file {
|
|
|
|
my ( $self ) = @_;
|
|
|
|
ok( $self->content_log_file, 'content_log_file() returns something' );
|
|
|
|
}
|
|
|
|
|
2014-12-03 00:08:07 +01:00
|
|
|
sub test_content_log_enabled {
|
|
|
|
my ( $self ) = @_;
|
|
|
|
ok( ! $self->content_log_enabled, 'content_log_enabled() returns false' );
|
|
|
|
}
|
|
|
|
|
2014-12-03 00:13:00 +01:00
|
|
|
sub test_exclude {
|
|
|
|
my ( $self ) = @_;
|
|
|
|
ok( ! $self->exclude, 'exclude() default method returns false' );
|
|
|
|
}
|
|
|
|
|