diff options
author | LEDfan <tobia@ledfan.be> | 2016-01-22 10:41:39 +0300 |
---|---|---|
committer | LEDfan <tobia@ledfan.be> | 2016-01-22 10:41:39 +0300 |
commit | fbd7f8a0865f79b8391602fd8bf138fc71cf50ba (patch) | |
tree | 1b3d771bf4786a37491f89b1394ef67fd6006989 /tests/unit | |
parent | 9bfa60a7ba74ade068c551ebb8ede7956a2744a5 (diff) |
Travis...
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/controller/HttpBindControllerTest.php | 4 | ||||
-rw-r--r-- | tests/unit/http/XMPPResponseTest.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/controller/HttpBindControllerTest.php b/tests/unit/controller/HttpBindControllerTest.php index 0f51997..9636bb7 100644 --- a/tests/unit/controller/HttpBindControllerTest.php +++ b/tests/unit/controller/HttpBindControllerTest.php @@ -167,7 +167,7 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase { ->method('handle') ->will($this->returnValue($result)); - $r1 = $this->getMockBuilder('Sabre\XML\XmlSerializable')->disableOriginalConstructor()->getMock(); + $r1 = $this->getMockBuilder('OCA\OJSXC\Db\Stanza')->disableOriginalConstructor()->getMock(); $r1->expects($this->once()) ->method('xmlSerialize') ->will($this->returnCallback(function(Writer $writer){ @@ -276,7 +276,7 @@ XML; $this->messageHandler->expects($this->once()) ->method('handle'); - $r1 = $this->getMockBuilder('Sabre\XML\XmlSerializable')->disableOriginalConstructor()->getMock(); + $r1 = $this->getMockBuilder('OCA\OJSXC\Db\Stanza')->disableOriginalConstructor()->getMock(); $r1->expects($this->once()) ->method('xmlSerialize') ->will($this->returnCallback(function(Writer $writer){ diff --git a/tests/unit/http/XMPPResponseTest.php b/tests/unit/http/XMPPResponseTest.php index a2ca485..5304976 100644 --- a/tests/unit/http/XMPPResponseTest.php +++ b/tests/unit/http/XMPPResponseTest.php @@ -14,7 +14,7 @@ namespace OCA\OJSXC\Http { use PHPUnit_Framework_TestCase; - class IqRosterTest extends PHPUnit_Framework_TestCase { + class XMPPResponseTest extends PHPUnit_Framework_TestCase { public function writingProvider() { $stanza1 = new Stanza(); @@ -27,7 +27,7 @@ namespace OCA\OJSXC\Http { $stanza2->setTo('test.be'); $stanza2->setStanza('abc'); $stanza2->setType('testtype'); - $stanza2->setValues('abcvalue'); + $stanza2->setValue('abcvalue'); return [ [ |