From 2471517fa73121505d2bd88504170d741a0cb86b Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Thu, 15 Jul 2010 12:54:31 -0500 Subject: [PATCH] remove getAdminConsole from Survey --- lib/WebGUI/Asset/Wobject/Survey.pm | 3 +- t/Asset/Wobject/Survey.t | 46 +----------------------------- 2 files changed, 2 insertions(+), 47 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Survey.pm b/lib/WebGUI/Asset/Wobject/Survey.pm index 704d9ffb7..906971a52 100644 --- a/lib/WebGUI/Asset/Wobject/Survey.pm +++ b/lib/WebGUI/Asset/Wobject/Survey.pm @@ -659,8 +659,7 @@ sub www_editSurvey { Extends the base class to add in survey controls like edit, view graph, run tests, and test suite. -=cut - +# TODO: Convert to Asset Helper sub getAdminConsole { my $self = shift; my $ac = $self->SUPER::getAdminConsole; diff --git a/t/Asset/Wobject/Survey.t b/t/Asset/Wobject/Survey.t index 0a18b9a40..5d6c50fc4 100644 --- a/t/Asset/Wobject/Survey.t +++ b/t/Asset/Wobject/Survey.t @@ -18,7 +18,7 @@ my $session = WebGUI::Test->session; #---------------------------------------------------------------------------- # Tests -plan tests => 48; +plan tests => 47; #---------------------------------------------------------------------------- # 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