This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This file will provide English strings for our new labels. | |
// Additional extensions could be created so that our dashlet supports other languages. | |
$app_strings['LBL_CASE_COUNT_BY_STATUS'] = 'Case Count By Status'; | |
$app_strings['LBL_CASE_COUNT_BY_STATUS_DESCRIPTION'] = 'Shows the number of Cases on the Cases List view by status.'; | |
$app_strings['LBL_CASE_COUNT_BY_STATUS_TOTAL'] = 'Total Cases:'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Basic Jasmine tests for Case Count by Status dashlet | |
*/ | |
ddescribe("Case Count by Status", function () { | |
/* | |
* Some useful constants for our tests. | |
* We use them to keep track of the module, layout, and view we are testing | |
*/ | |
var moduleName = 'Cases'; | |
var viewName = 'case-count-by-status'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Basic Jasmine test template for any Sugar 7 view | |
*/ | |
ddescribe("Jasmine template for Sugar 7 views", function () { | |
/* | |
* Some useful constants for our tests. | |
* We use them to keep track of the module, layout, and view we are testing | |
*/ | |
var moduleName = 'Accounts'; //TODO CHANGE TO AN APPROPRIATE MODULE | |
var viewName = "CHANGE_ME"; //TODO CHANGE TO YOUR VIEW NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Copyright 2015 SugarCRM Inc. | |
*/ | |
/** | |
* Example of a module logic hook that we will unit test | |
*/ | |
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Copyright 2015 SugarCRM Inc. | |
*/ | |
require_once 'custom/modules/Accounts/AccountsOnSaveHooks.php'; | |
/** | |
* Example tests for our custom Logic Hook. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright 2015 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | |
*/ | |
$viewdefs['base']['view']['xyz_contextual-iframe'] = array( | |
//Dashlet metadata | |
'dashlets' => array( | |
array( | |
'label' => 'LBL_XYZ_IFRAME_DASHLET_LABEL', | |
'description' => 'LBL_XYZ_IFRAME_DASHLET_DESCRIPTION', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/** | |
* Copyright 2015 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | |
*/ | |
plugins: ['Dashlet'], | |
/** | |
* Record ID that is in context | |
*/ | |
record: undefined, |