remove getAdminConsole from Survey

This commit is contained in:
Doug Bell 2010-07-15 12:54:31 -05:00
parent c030946688
commit 2471517fa7
2 changed files with 2 additions and 47 deletions

View file

@ -659,8 +659,7 @@ sub www_editSurvey {
Extends the base class to add in survey controls like edit, view graph, run tests, and Extends the base class to add in survey controls like edit, view graph, run tests, and
test suite. test suite.
=cut # TODO: Convert to Asset Helper
sub getAdminConsole { sub getAdminConsole {
my $self = shift; my $self = shift;
my $ac = $self->SUPER::getAdminConsole; my $ac = $self->SUPER::getAdminConsole;

View file

@ -18,7 +18,7 @@ my $session = WebGUI::Test->session;
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Tests # Tests
plan tests => 48; plan tests => 47;
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# put your tests here # put your tests here
@ -269,50 +269,6 @@ like($storage->getFileContentsAsScalar($filename), qr{
} }
$survey->getAdminConsole();
my $adminConsole = $survey->getAdminConsole();
cmp_deeply(
$adminConsole->{_submenuItem},
[
{
'extras' => undef,
'url' => re('func=edit$'),
'label' => 'Edit'
},
{
'extras' => undef,
'url' => re('func=editSurvey$'),
'label' => 'Edit Survey'
},
{
'extras' => undef,
'url' => re('func=takeSurvey$'),
'label' => 'Take Survey'
},
{
'extras' => undef,
'url' => re('func=graph$'),
'label' => 'Visualize'
},
{
'extras' => undef,
'url' => re('func=editTestSuite$'),
'label' => 'Test Suite'
},
{
'extras' => undef,
'url' => re('func=runTests$'),
'label' => 'Run All Tests'
},
{
'extras' => undef,
'url' => re('func=runTests;format=tap$'),
'label' => 'Run All Tests (TAP)'
}
],
"Admin console submenu",
);
#################################################### ####################################################
# #
# www_loadSurvey # www_loadSurvey