diff options
author | LEDfan <tobia@ledfan.be> | 2016-01-21 17:14:23 +0300 |
---|---|---|
committer | LEDfan <tobia@ledfan.be> | 2016-01-21 17:14:23 +0300 |
commit | 2f295c6f49267ee2172ca4a14e6a785118a29d12 (patch) | |
tree | 4405f80c2cbdf135cd6c793e4c13a05e33a6f9a7 /tests/unit | |
parent | fc78604fca485d4ab2d51063e5f1c66192d5247c (diff) |
Fix unit tests
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/controller/HttpBindControllerTest.php | 10 |
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(); |