summaryrefslogtreecommitdiffstats
path: root/tests/unit/businesslayer/FolderBusinessLayerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/businesslayer/FolderBusinessLayerTest.php')
-rw-r--r--tests/unit/businesslayer/FolderBusinessLayerTest.php14
1 files changed, 4 insertions, 10 deletions
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');
}