-
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.
Merge pull request #48 from silinternational/develop
Add delete() to UserSettingsForwardingAddresses
- Loading branch information
Showing
3 changed files
with
107 additions
and
3 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
46 changes: 46 additions & 0 deletions
46
SilMock/tests/Google/Service/Gmail/Resource/UsersSettingsForwardingAddressesTest.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,46 @@ | ||
<?php | ||
|
||
namespace SilMock\tests\Google\Service\Gmail\Resource; | ||
|
||
use PHPUnit\Framework\Assert; | ||
use PHPUnit\Framework\TestCase; | ||
use SilMock\Google\Service\Gmail\Resource\UsersSettingsForwardingAddresses; | ||
use SilMock\Google\Service\GoogleFixtures; | ||
|
||
class UsersSettingsForwardingAddressesTest extends TestCase | ||
{ | ||
public $dataFile = DATAFILE4; | ||
|
||
protected function setUp(): void | ||
{ | ||
$this->emptyFixturesDataFile(); | ||
} | ||
|
||
private function emptyFixturesDataFile() | ||
{ | ||
$fixturesClass = new GoogleFixtures($this->dataFile); | ||
$fixturesClass->removeAllFixtures(); | ||
} | ||
|
||
protected function tearDown(): void | ||
{ | ||
$this->emptyFixturesDataFile(); | ||
} | ||
|
||
public function testListUsersSettingsForwardingAddresses() | ||
{ | ||
$accountEmail = '[email protected]'; | ||
$forwardingAddresses = new UsersSettingsForwardingAddresses(); | ||
$result = $forwardingAddresses->listUsersSettingsForwardingAddresses($accountEmail); | ||
// Because this is totally a skeleton. | ||
Assert::assertEmpty($result); | ||
} | ||
|
||
public function testDelete() | ||
{ | ||
$accountEmail = '[email protected]'; | ||
$forwardingAddresses = new UsersSettingsForwardingAddresses(); | ||
$forwardingAddresses->delete($accountEmail, $accountEmail); | ||
Assert::assertTrue(true, 'Because a skeleton should not explode.'); | ||
} | ||
} |