Merge branch 'master' into survey
* master: (127 commits) Prefill in the email address in the ITransact credentials form from the user's Shop address. fixed Matrix best/worst rated lists Fix bad form variable for phone number in EMS Badge address info. - Added a switch to allow the use of non-WebGUI objects with the Workflow fixing a problem with previous survey fix fixed #9671: Survey - breaks admin bar fixed a Matrix sql problem i18n the image labels and title for the asset manager, manage screen. Prevent an imported package from changing the a current asset's status from pending to anything else. Remove trailing comma in Shop/Transaction JS so IE6 works. fixed documentation fixed a bug when a matrix listing didn't have a forum attached small char encoding fix to merged upgrade fix small issue in addChild adding merge point Fix a problem with purging an EMS. Update this template so that it passes the template i18n test. Fix a broken i18n label in answer edit template for the Survey. Unify all Survey CSS into 1 file, and use it. Adding/fixing Survey i18n and Help ... Conflicts: lib/WebGUI/Asset/Wobject/Survey.pm lib/WebGUI/Asset/Wobject/Survey/ResponseJSON.pm lib/WebGUI/i18n/English/Asset_Survey.pm www/extras/wobject/Survey/editsurvey/object.js
This commit is contained in:
commit
b0c5c09461
127 changed files with 5481 additions and 677 deletions
|
|
@ -41,7 +41,7 @@ my $originalExportPath = $session->config->get('exportPath');
|
|||
|
||||
my $testRan = 1;
|
||||
|
||||
plan tests => 146; # Increment this number for each test you create
|
||||
plan tests => 144; # Increment this number for each test you create
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# exportCheckPath()
|
||||
|
|
@ -436,9 +436,6 @@ is($@, '', 'exportWriteFile for perl file works');
|
|||
|
||||
ok(-e $asset->exportGetUrlAsPath->absolute->stringify, "exportWriteFile actually writes the perl file");
|
||||
|
||||
eval { $content = WebGUI::Test->getPage($asset, 'exportHtml_view') };
|
||||
is(scalar $asset->exportGetUrlAsPath->absolute->slurp, $content, "exportWriteFile puts correct content in exported perl file");
|
||||
|
||||
$guidPath->rmtree;
|
||||
$asset = WebGUI::Asset->new($session, 'ExportTest000000000002');
|
||||
eval { $asset->exportWriteFile() };
|
||||
|
|
@ -446,9 +443,6 @@ is($@, '', 'exportWriteFile for plain file works');
|
|||
|
||||
ok(-e $asset->exportGetUrlAsPath->absolute->stringify, "exportWriteFile actuall writes the plain file");
|
||||
|
||||
eval { $content = WebGUI::Test->getPage($asset, 'exportHtml_view') };
|
||||
is(scalar $asset->exportGetUrlAsPath->absolute->slurp, $content, "exportWriteFile puts correct content in exported plain file");
|
||||
|
||||
$guidPath->rmtree;
|
||||
|
||||
# next, make sure an exception is thrown if the user we're exporting as doesn't
|
||||
|
|
@ -933,7 +927,7 @@ SKIP: {
|
|||
eval { ($success, $message) = $home->exportAsHtml( { userId => 3, depth => 99 } ) };
|
||||
is($@, '', "exportAsHtml catches inaccessible exportPath ");
|
||||
is($success, 0, "exportAsHtml returns 0 for inaccessible exportPath");
|
||||
is($message, "can't access " . $inaccessibleDirectory->stringify, "exportAsHtml returns correct message for inaccessible exportPath");
|
||||
is($message, "can't create exportPath " . $inaccessibleDirectory->stringify, "exportAsHtml returns correct message for inaccessible exportPath");
|
||||
}
|
||||
|
||||
# exportPath is a file, not a directory
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ use Test::More;
|
|||
use Test::Deep;
|
||||
use Scalar::Util;
|
||||
use WebGUI::Asset::File::GalleryFile::Photo;
|
||||
use WebGUI::International;
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Init
|
||||
|
|
@ -268,7 +269,7 @@ like(
|
|||
"www_editCommentSave -- Permission denied if not Gallery->canAddComment",
|
||||
);
|
||||
|
||||
my $i18n = $photo->i18n($session);
|
||||
my $i18n = WebGUI::International->new($session, 'Asset_Photo');
|
||||
my $errorMessage;
|
||||
|
||||
# Required: commentId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue