Revert "group() function Survey::ExpressionEngine that returns 1/0 depending on whether the current user is in a group" -- wrong branch.

This reverts commit eaa29c5f44.

Conflicts:

	docs/changelog/7.x.x.txt
This commit is contained in:
Scott Walters 2012-06-19 19:31:50 -04:00
parent 3fe8f9a080
commit 0422807b32
3 changed files with 1 additions and 38 deletions

View file

@ -22,7 +22,7 @@ my $session = WebGUI::Test->session;
#----------------------------------------------------------------------------
# Tests
my $tests = 62;
my $tests = 60;
plan tests => $tests + 1;
#----------------------------------------------------------------------------
@ -237,13 +237,6 @@ cmp_deeply( $e->run( $session, qq{jump {scoreX('$url', ext_s0) == 200} target},
cmp_deeply( $e->run( $session, qq{jump {taggedX('$url', ext_tag) == 199} target}, {userId => $user->userId} ),
{ jump => 'target', tags => {} }, 'external tag lookups work too' );
# group() utility function
$session->user( { userId => 3 });
cmp_deeply( $e->run( $session, qq{jump { group('Admins') } target}, ),
{ jump => 'target', tags => { }, }, 'group() function recognizes us as Admins' );
cmp_deeply( $e->run( $session, qq{jump { group('Space Aliens') } target}, ),
{ jump => undef, tags => { }, }, 'group() function recognizes that we are not Space Aliens' );
# Test for nasty bugs caused by file-scoped lexicals not being properly initialised in L<ExpressionEngine::run>
{
# Create a second test user