Skip to content

Commit

Permalink
Adding new attribute to CaseTest for sentAssignmentNotification as we…
Browse files Browse the repository at this point in the history
…ll as other Tests
  • Loading branch information
samus-aran committed Aug 19, 2021
1 parent 316b96e commit 7bfd3e8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/phpunit/data/SugarBeanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2479,6 +2479,7 @@ public function testSave()
$bean = BeanFactory::getBean('Contacts');
$bean->id = 'testBean_1+!';
$bean->modified_by_name = 'testing';
$bean->createdAuditRecords = false;
$bean->field_defs = array_merge($bean->field_defs, $bean->field_defs = array(
'email_addresses' => array(
'type' => 'link',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function testSetLawfulBasis()
{
$person = BeanFactory::newBean('Contacts');
$person->last_name = 'Smith';
$person->createdAuditRecords = false;

// Test when basis is not a string
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private function indexRunner()
$bean->first_name = $firstName;
$bean->last_name = $lastName;
$bean->primary_address_city = $city;
$bean->createdAuditRecords = false;

// Save the bean to the database and retrieve the new id
$bean->save();
Expand Down Expand Up @@ -167,6 +168,7 @@ private function indexRunner()
$bean = BeanFactory::getBean('Contacts', $id);

$bean->first_name = $full_name_update;
$bean->createdAuditRecords = false;

// injecting this indexer so that it'll have the same parameters
/** @noinspection PhpUndefinedFieldInspection */
Expand Down Expand Up @@ -259,6 +261,7 @@ public function testDifferentialIndexing()

$bean->first_name = $firstName;
$bean->last_name = $lastName;
$bean->createdAuditRecords = false;

$bean->save();

Expand Down Expand Up @@ -295,6 +298,7 @@ public function testDifferentialIndexing()
$firstName2 = 'NotTheSame';
$bean2->first_name = $firstName2;
$bean2->last_name = $lastName;
$bean2->createdAuditRecords = false;

$bean2->save();
$id2 = $bean2->id;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/phpunit/modules/Cases/CaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ public function testsave()
$aCase = BeanFactory::newBean('Cases');
$aCase->name = 'test';
$aCase->priority = 'P1';
$aCase->sentAssignmentNotifications = false;

$aCase->save();

Expand Down
1 change: 1 addition & 0 deletions tests/unit/phpunit/modules/Meetings/MeetingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public function testsend_assignment_notifications()

$meeting->date_start = '2016-02-11 17:30:00';
$meeting->date_end = '2016-02-11 17:30:00';
$meeting->sentAssignmentNotifications = false;

$admin = BeanFactory::newBean('Administration');
$admin->retrieveSettings();
Expand Down

0 comments on commit 7bfd3e8

Please sign in to comment.