Skip to content

Commit

Permalink
Item14152: Merge commit '5fcac85155551731f8a04fdd8c667cb93d558497' in…
Browse files Browse the repository at this point in the history
…to Item14152

* commit '5fcac85155551731f8a04fdd8c667cb93d558497':
  Item13897: OopsException backward compatibility and bug fixes.
  Item13897: Fixed Foswiki::Class incompatibility with perl 5.20 and lower.
  Item13897: Fixed feature :5.14 not been applied sometimes.
  Item13897: Merge of Foswiki::Exception.pm from Item14152
  Item13897: Fixed a problem with @argv being emptied.
  Item14150:  Recompute validation keys on cached pages
  • Loading branch information
vrurg committed Sep 6, 2016
2 parents 48c7762 + 5fcac85 commit 2905c84
Show file tree
Hide file tree
Showing 22 changed files with 281 additions and 211 deletions.
2 changes: 1 addition & 1 deletion UnitTestContrib/lib/Unit/TestApp.pm
Expand Up @@ -113,7 +113,7 @@ sub registerCallbacks {
$this->_cbRegistered(1);
}

before _prepareConfig => sub {
before BUILD => sub {
my $this = shift;

$this->registerCallbacks;
Expand Down
3 changes: 1 addition & 2 deletions UnitTestContrib/test/unit/FoswikiFnTestCase.pm
Expand Up @@ -31,8 +31,7 @@ use Foswiki::UI::Register();
use Try::Tiny;
use Carp qw(cluck);

use Moo;
use namespace::clean;
use Foswiki::Class;
extends qw(FoswikiTestCase);

has test_user_forename => ( is => 'rw', );
Expand Down
16 changes: 8 additions & 8 deletions UnitTestContrib/test/unit/ManageDotPmTests.pm
Expand Up @@ -225,7 +225,7 @@ sub _registerUserException {
},
},
);
$this->app->net->setMailHandler( \&FoswikiFnTestCase::sentMail );
$this->app->net->setMailHandler( $this->can('sentMail') );
my $exception;
try {
$this->captureWithKey(
Expand All @@ -252,7 +252,7 @@ sub _registerUserException {

# Reload caches
$this->createNewFoswikiApp;
$this->app->net->setMailHandler( \&FoswikiFnTestCase::sentMail );
$this->app->net->setMailHandler( $this->can('sentMail') );

return $exception;
}
Expand Down Expand Up @@ -814,7 +814,7 @@ sub verify_resetEmailOkay {
callbacks => { handleRequestException => \&_cbHRE, },
);

$this->app->net->setMailHandler( \&FoswikiFnTestCase::sentMail );
$this->app->net->setMailHandler( $this->can('sentMail') );
try {
$this->captureWithKey(
manage => sub {
Expand Down Expand Up @@ -923,7 +923,7 @@ EOM
callbacks => { handleRequestException => \&_cbHRE, },
);

$this->app->net->setMailHandler( \&FoswikiFnTestCase::sentMail );
$this->app->net->setMailHandler( $this->can('sentMail') );

# SMELL We've set path_info, web and topic must be set from it.
#$req->topic($regTopic);
Expand Down Expand Up @@ -1071,7 +1071,7 @@ EOM
callbacks => { handleRequestException => \&_cbHRE, },
);

$this->app->net->setMailHandler( \&FoswikiFnTestCase::sentMail );
$this->app->net->setMailHandler( $this->can('sentMail') );

try {
my ($text) = $this->captureWithKey(
Expand Down Expand Up @@ -1133,7 +1133,7 @@ sub verify_deleteUser {
callbacks => { handleRequestException => \&_cbHRE, },
);

$this->app->net->setMailHandler( \&FoswikiFnTestCase::sentMail );
$this->app->net->setMailHandler( $this->can('sentMail') );

try {
$this->captureWithKey(
Expand Down Expand Up @@ -1454,7 +1454,7 @@ sub test_createDefaultWeb {
callbacks => { handleRequestException => \&_cbHRE, },
);

$this->app->net->setMailHandler( \&FoswikiFnTestCase::sentMail );
$this->app->net->setMailHandler( $this->can('sentMail') );

try {
my ( $stdout, $stderr, $result ) =
Expand Down Expand Up @@ -1837,7 +1837,7 @@ sub test_createEmptyWeb {
callbacks => { handleRequestException => \&_cbHRE, },
);

$this->app->net->setMailHandler( \&FoswikiFnTestCase::sentMail );
$this->app->net->setMailHandler( $this->can('sentMail') );

try {
my ( $stdout, $stderr, $result ) =
Expand Down

0 comments on commit 2905c84

Please sign in to comment.