-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33b1340
commit c003718
Showing
6 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Tags::HTML::ChangePassword; | ||
use Test::More 'tests' => 2; | ||
use Test::NoWarnings; | ||
|
||
# Test. | ||
my $obj = Tags::HTML::ChangePassword->new; | ||
my $ret = $obj->cleanup; | ||
is($ret, undef, 'Cleanup returns undef.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Data::Message::Simple; | ||
use English; | ||
use Error::Pure::Utils qw(clean); | ||
use Tags::HTML::ChangePassword; | ||
use Test::More 'tests' => 3; | ||
use Test::NoWarnings; | ||
|
||
# Test. | ||
my $obj = Tags::HTML::ChangePassword->new; | ||
my $messages_ar = [ | ||
Data::Message::Simple->new( | ||
'text' => 'Error #1', | ||
'type' => 'error', | ||
), | ||
]; | ||
my $ret = $obj->init($messages_ar); | ||
is($ret, undef, 'Init returns undef.'); | ||
|
||
# Test. | ||
$obj = Tags::HTML::ChangePassword->new; | ||
eval { | ||
$obj->init; | ||
}; | ||
is($EVAL_ERROR, "No messages to init.\n", "No messages to init."); | ||
clean(); |