diff --git a/t/Shop/Cart.t b/t/Shop/Cart.t index 4a7c92fcd..ba8f088a3 100644 --- a/t/Shop/Cart.t +++ b/t/Shop/Cart.t @@ -37,10 +37,10 @@ plan tests => 20; # Increment this number for each test you create #---------------------------------------------------------------------------- # put your tests here -throws_deeply ( sub { my $cart = WebGUI::Shop::Cart->newBySession(); }, +throws_deeply ( sub { my $cart = WebGUI::Shop::Cart->getCartBySession(); }, 'WebGUI::Error::InvalidObject', { - error => 'Needs a session.', + error => 'Need a session.', got => '', expected => 'WebGUI::Session', },