diff options
Diffstat (limited to 'tests/unit/businesslayer')
4 files changed, 6 insertions, 13 deletions
diff --git a/tests/unit/businesslayer/BusinessLayerTest.php b/tests/unit/businesslayer/BusinessLayerTest.php index e6695f47f..8b9df37c0 100644 --- a/tests/unit/businesslayer/BusinessLayerTest.php +++ b/tests/unit/businesslayer/BusinessLayerTest.php @@ -66,7 +66,7 @@ class BusinessLayerTest extends \PHPUnit_Framework_TestCase { ->method('find') ->with($this->equalTo($id), $this->equalTo($user)); - $result = $this->newsBusinessLayer->find($id, $user); + $this->newsBusinessLayer->find($id, $user); } diff --git a/tests/unit/businesslayer/FeedBusinessLayerTest.php b/tests/unit/businesslayer/FeedBusinessLayerTest.php index 4cf0ae399..bd8e6fabd 100644 --- a/tests/unit/businesslayer/FeedBusinessLayerTest.php +++ b/tests/unit/businesslayer/FeedBusinessLayerTest.php @@ -374,7 +374,7 @@ class FeedBusinessLayerTest extends \PHPUnit_Framework_TestCase { ->will($this->throwException($ex)); $this->setExpectedException('\OCA\News\BusinessLayer\BusinessLayerException'); - $return = $this->feedBusinessLayer->update($feed->getId(), $this->user); + $this->feedBusinessLayer->update($feed->getId(), $this->user); } diff --git a/tests/unit/businesslayer/FolderBusinessLayerTest.php b/tests/unit/businesslayer/FolderBusinessLayerTest.php index c66bb9453..e94a71ffa 100644 --- a/tests/unit/businesslayer/FolderBusinessLayerTest.php +++ b/tests/unit/businesslayer/FolderBusinessLayerTest.php @@ -100,15 +100,12 @@ class FolderBusinessLayerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($rows)); $this->setExpectedException('\OCA\News\BusinessLayer\BusinessLayerException'); - $result = $this->folderBusinessLayer->create($folderName, 'john', 3); + $this->folderBusinessLayer->create($folderName, 'john', 3); } public function testCreateThrowsExWhenFolderNameEmpty(){ $folderName = ''; - $rows = array( - array('id' => 1) - ); $this->folderMapper->expects($this->once()) ->method('findByName') @@ -116,7 +113,7 @@ class FolderBusinessLayerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue(array())); $this->setExpectedException('\OCA\News\BusinessLayer\BusinessLayerValidationException'); - $result = $this->folderBusinessLayer->create($folderName, 'john', 3); + $this->folderBusinessLayer->create($folderName, 'john', 3); } @@ -172,15 +169,12 @@ class FolderBusinessLayerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($rows)); $this->setExpectedException('\OCA\News\BusinessLayer\BusinessLayerException'); - $result = $this->folderBusinessLayer->rename(3, $folderName, 'john'); + $this->folderBusinessLayer->rename(3, $folderName, 'john'); } public function testRenameThrowsExWhenFolderNameEmpty(){ $folderName = ''; - $rows = array( - array('id' => 1) - ); $this->folderMapper->expects($this->once()) ->method('findByName') @@ -188,7 +182,7 @@ class FolderBusinessLayerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue(array())); $this->setExpectedException('\OCA\News\BusinessLayer\BusinessLayerException'); - $result = $this->folderBusinessLayer->rename(3, $folderName, 'john'); + $this->folderBusinessLayer->rename(3, $folderName, 'john'); } diff --git a/tests/unit/businesslayer/ItemBusinessLayerTest.php b/tests/unit/businesslayer/ItemBusinessLayerTest.php index 96faee440..930990350 100644 --- a/tests/unit/businesslayer/ItemBusinessLayerTest.php +++ b/tests/unit/businesslayer/ItemBusinessLayerTest.php @@ -59,7 +59,6 @@ class ItemBusinessLayerTest extends \PHPUnit_Framework_TestCase { $this->itemBusinessLayer = new ItemBusinessLayer($this->mapper, $statusFlag, $timeFactory, $config); $this->user = 'jack'; - $response = 'hi'; $this->id = 3; $this->updatedSince = 20333; $this->showAll = true; |