Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Jun 5, 2016
1 parent 5732b7d commit 3d50677
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Test/RocketChatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function testNotifyUser()

$this->container['httpClient']
->expects($this->once())
->method('postForm')
->method('postFormAsync')
->with('my url', $this->anything());

$userModel = new UserModel($this->container);
Expand All @@ -45,7 +45,7 @@ public function testNotifyUserWithWebhookNotConfigured()

$this->container['httpClient']
->expects($this->never())
->method('postForm');
->method('postFormAsync');

$userModel = new UserModel($this->container);
$projectModel = new ProjectModel($this->container);
Expand All @@ -68,7 +68,7 @@ public function testNotifyProject()
{
$this->container['httpClient']
->expects($this->once())
->method('postForm')
->method('postFormAsync')
->with('my url', $this->anything());

$projectModel = new ProjectModel($this->container);
Expand All @@ -94,7 +94,7 @@ public function testNotifyProjectWithWebhookNotConfigured()
{
$this->container['httpClient']
->expects($this->never())
->method('postForm');
->method('postFormAsync');

$projectModel = new ProjectModel($this->container);
$taskCreationModel = new TaskCreationModel($this->container);
Expand Down

0 comments on commit 3d50677

Please sign in to comment.