Migrate initial setup to WebGUI::Wizard
This commit is contained in:
parent
59b7de0d0c
commit
ce26a84e87
5 changed files with 43 additions and 614 deletions
|
|
@ -35,13 +35,13 @@ plan tests => 3; # Increment this number for each test you create
|
|||
|
||||
use_ok( 'WebGUI::Content::Wizard' );
|
||||
|
||||
ok( !WebGUI::Content::Wizard::process( $session ), "Declines correctly" );
|
||||
ok( !WebGUI::Content::Wizard::handler( $session ), "Declines correctly" );
|
||||
|
||||
$session->request->setup_body( {
|
||||
op => 'wizard',
|
||||
wizard_class => 'WebGUI::Wizard::HelloWorld',
|
||||
} );
|
||||
is( WebGUI::Content::Wizard::process( $session ), "Hello World!\n", "Accepts request and returns response" );
|
||||
is( WebGUI::Content::Wizard::handler( $session ), "Hello World!\n", "Accepts request and returns response" );
|
||||
|
||||
package WebGUI::Wizard::HelloWorld;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue