-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c27d7f6
commit a02378b
Showing
5 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,10 @@ protected function setUp() | |
$this->student->id = Uuid::uuid1(); | ||
$this->student->first_name = 'John'; | ||
$this->student->last_name = 'Doe'; | ||
$this->student->email1 = '[email protected]'; | ||
|
||
$this->emailAddress = TestMockHelper::createMock($this, '\\SugarEmailAddress'); | ||
$this->student->emailAddress = $this->emailAddress; | ||
$this->emailAddress->method('getPrimaryAddress')->willReturn('[email protected]'); | ||
|
||
// Create a new SchedulersJob and set the job's data to the student's id | ||
$this->job = TestMockHelper::createPartialMock($this, '\\SchedulersJob', ['succeedJob', 'failJob']); | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ class RecordManagerTest extends TestCase | |
{ | ||
/** | ||
* Check that when valid params are sent to createStudentRecord, true is returned | ||
* @covers ::createStudentRecord | ||
* @covers Sugarcrm\Sugarcrm\custom\gradebook_fake\RecordManager::createStudentRecord | ||
*/ | ||
public function testRecordManagerValidParams(){ | ||
$rm = new RecordManager(); | ||
|
@@ -23,7 +23,7 @@ public function testRecordManagerValidParams(){ | |
/** | ||
* Check that when the email address [email protected] is used as a param for createStudentRecord, an | ||
* exception is thrown | ||
* @covers ::createStudentRecord | ||
* @covers Sugarcrm\Sugarcrm\custom\gradebook_fake\RecordManager::createStudentRecord | ||
*/ | ||
public function testRecordManagerForceException(){ | ||
$rm = new RecordManager(); | ||
|
This file contains 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