-
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 #21 from silinternational/develop
Release 0.6.0
- Loading branch information
Showing
10 changed files
with
725 additions
and
2,239 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test: | ||
cd /var/lib/GA_mock/SilMock/tests; /var/lib/GA_mock/SilMock/tests/phpunit |
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
use SilMock\Google\Service\GoogleFixtures; | ||
|
||
|
||
class DirectoryTest extends PHPUnit_Framework_TestCase | ||
class DirectoryTest extends PHPUnit\Framework\TestCase | ||
{ | ||
public $dataFile = DATAFILE2; | ||
|
||
|
@@ -494,10 +494,6 @@ public function testUsersUpdate_WithDifferentAliases() | |
$this->assertEquals($expected, $results, $msg); | ||
} | ||
|
||
/** | ||
* @expectedException \Exception | ||
* @expectedExceptionCode 201407101130 | ||
*/ | ||
public function testUsersUpdate_NotThere() | ||
{ | ||
$fixturesClass = new GoogleFixtures($this->dataFile); | ||
|
@@ -521,6 +517,8 @@ public function testUsersUpdate_NotThere() | |
ObjectUtils::initialize($newUser, $userData); | ||
|
||
$newDir = new Directory('anyclient', $this->dataFile); | ||
|
||
$this->expectExceptionCode(201407101130); | ||
$newDir->users->update($userId, $newUser); | ||
// the assert is in the doc comment | ||
} | ||
|
@@ -633,10 +631,6 @@ public function testUsersAliasesInsert() | |
$this->assertEquals($expected, $results, $msg); | ||
} | ||
|
||
/** | ||
* @expectedException \Exception | ||
* @expectedExceptionCode 201407110830 | ||
*/ | ||
public function testUsersAliasesInsert_UserNotThere() | ||
{ | ||
$fixturesClass = new GoogleFixtures($this->dataFile); | ||
|
@@ -650,8 +644,9 @@ public function testUsersAliasesInsert_UserNotThere() | |
$newAlias->kind = "personal"; | ||
|
||
$newDir = new Directory('anyclient', $this->dataFile); | ||
|
||
$this->expectExceptionCode(201407110830); | ||
$newAlias = $newDir->users_aliases->insert("[email protected]", $newAlias); | ||
// the assert is in the doc comments with @expectedException | ||
} | ||
|
||
public function testUsersAliasesListUsersAliases_Email() | ||
|
@@ -768,10 +763,6 @@ public function testUsersAliasesListUsersAliases_Structure() | |
$this->assertEquals($expected, $results, $msg); | ||
} | ||
|
||
/** | ||
* @expectedException \Exception | ||
* @expectedExceptionCode 201407101420 | ||
*/ | ||
public function testUsersAliasesListUsersAliases_UserNotThere() | ||
{ | ||
$fixturesClass = new GoogleFixtures($this->dataFile); | ||
|
@@ -787,6 +778,8 @@ public function testUsersAliasesListUsersAliases_UserNotThere() | |
$fixturesClass->addFixtures($newFixtures); | ||
|
||
$newDir = new Directory('anyclient', $this->dataFile); | ||
|
||
$this->expectExceptionCode(201407101420); | ||
$aliases = $newDir->users_aliases->listUsersAliases("[email protected]"); | ||
} | ||
|
||
|
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
Empty file.
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
Oops, something went wrong.