From 17cd8473786be985242261783f84177afa20e142 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Fri, 10 Apr 2009 00:51:49 +0000 Subject: [PATCH] adjusting tests for new behavior --- docs/changelog/7.x.x.txt | 2 +- t/Asset/AssetLineage.t | 4 +--- t/Session/CheckClient.t | 6 ------ 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 0e0292d4d..bf701a223 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -6,7 +6,7 @@ - rfe #9965: matrix/pls reverse dropped event variables - fixed install of Passive Analytics settings for new sites (SDH Consulting Group) - Survey Expression Engine upgraded (SDH Consulting Group) - + 7.7.2 - fixed #10056: YUI javascripts included while adminOff (BNC) - fixed a bug that required you to hit "update cart" before the checkout diff --git a/t/Asset/AssetLineage.t b/t/Asset/AssetLineage.t index 0ab9dce89..4f424d652 100644 --- a/t/Asset/AssetLineage.t +++ b/t/Asset/AssetLineage.t @@ -17,7 +17,7 @@ use WebGUI::Session; use WebGUI::User; use WebGUI::Asset; -use Test::More tests => 92; # increment this value for each test you create +use Test::More tests => 90; # increment this value for each test you create use Test::Deep; # Test the methods in WebGUI::AssetLineage @@ -195,12 +195,10 @@ is( # #################################################### -ok(!$snippet2->setParent($folder), 'setParent: user must be in group 4 to do this'); $session->user({userId => $editor->userId}); ok(!$snippet2->setParent(), 'setParent: new parent must be passed in'); ok(!$snippet2->setParent($snippet2), 'setParent: cannot be your own parent'); ok(!$snippet2->setParent($folder2), 'setParent: will not move self to current parent'); -ok(!$snippet2->setParent($folder), 'setParent: user cannot edit parent'); $session->user({userId => 3}); ok(!$folder2->setParent($snippet2), 'setParent: will not move self to my child'); diff --git a/t/Session/CheckClient.t b/t/Session/CheckClient.t index 6071bbabc..bd7d71176 100644 --- a/t/Session/CheckClient.t +++ b/t/Session/CheckClient.t @@ -53,12 +53,6 @@ my @testArray = ( output => 0, comment => "s.also Privoxy/3.0 (Anonymous)" }, - { - agent => "*/Nutch-0.9-dev", - address => "123.113.184.232", - output => 1, - comment => "Unknown Yahoo robot" - }, { agent => "123spider-Bot (Version: 1.02, powered by www.123spider.de", output => 1,