Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLEDfan <tobia@ledfan.be>2016-01-21 17:14:23 +0300
committerLEDfan <tobia@ledfan.be>2016-01-21 17:14:23 +0300
commit2f295c6f49267ee2172ca4a14e6a785118a29d12 (patch)
tree4405f80c2cbdf135cd6c793e4c13a05e33a6f9a7 /tests/unit
parentfc78604fca485d4ab2d51063e5f1c66192d5247c (diff)
Fix unit tests
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/controller/HttpBindControllerTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/controller/HttpBindControllerTest.php b/tests/unit/controller/HttpBindControllerTest.php
index fa9ec29..d51d294 100644
--- a/tests/unit/controller/HttpBindControllerTest.php
+++ b/tests/unit/controller/HttpBindControllerTest.php
@@ -94,7 +94,7 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase {
$this->mockLock();
$this->stanzaMapper->expects($this->exactly(10))
->method('findByTo')
- ->with('john@localhost')
+ ->with('john')
->will($this->throwException($ex));
$response = $this->controller->index();
@@ -134,7 +134,7 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase {
$this->stanzaMapper->expects($pollCount)
->method('findByTo')
- ->with('john@localhost')
+ ->with('john')
->will($this->throwException($ex));
@@ -165,7 +165,7 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase {
$this->stanzaMapper->expects($this->once())
->method('findByTo')
- ->with('john@localhost')
+ ->with('john')
->will($this->returnValue([$r1]));
@@ -187,7 +187,7 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase {
$this->stanzaMapper->expects($this->exactly(10))
->method('findByTo')
- ->with('john@localhost')
+ ->with('john')
->will($this->throwException($ex));
$response = $this->controller->index();
@@ -215,7 +215,7 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase {
$this->stanzaMapper->expects($this->once())
->method('findByTo')
- ->with('john@localhost')
+ ->with('john')
->will($this->returnValue([$r1]));
$response = $this->controller->index();