-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
2 changed files
with
40 additions
and
4 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
30 changes: 30 additions & 0 deletions
30
SilMock/tests/Google/Service/Directory/Resource/TwoStepVerificationTest.php
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Service\Directory\Resource; | ||
|
||
use Exception; | ||
use PHPUnit\Framework\TestCase; | ||
use SilMock\Google\Service\Directory\Resource\TwoStepVerification; | ||
|
||
class TwoStepVerificationTest extends TestCase | ||
{ | ||
public $dataFile = DATAFILE2; | ||
|
||
public function testTwoStepVerificationTurnOff() | ||
{ | ||
$twoStepVerfication = new TwoStepVerification($this->dataFile); | ||
$this->assertIsObject($twoStepVerfication, 'Unable to instantiate twoStepVerification Mock object'); | ||
|
||
try { | ||
$twoStepVerfication->turnOff('[email protected]'); | ||
} catch (Exception $exception) { | ||
$this->assertFalse( | ||
true, | ||
sprintf( | ||
'Was expecting the turnOff method to function, but got: %s', | ||
$exception->getMessage() | ||
) | ||
); | ||
} | ||
} | ||
} |