diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:16:08 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:16:08 +0200 |
commit | 874c469e0241962e15927de5aba758a7206849ba (patch) | |
tree | 219febba5e72e13e2a4f789cf59fd057b7368c28 /tests/unit/businesslayer/FolderBusinessLayerTest.php | |
parent | 541318cb81710ef080b30cc790681ace773c11ac (diff) |
remove more dead code
Diffstat (limited to 'tests/unit/businesslayer/FolderBusinessLayerTest.php')
-rw-r--r-- | tests/unit/businesslayer/FolderBusinessLayerTest.php | 14 |
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'); } |