diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-12-16 18:31:08 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-12-16 18:31:08 +0300 |
commit | 88b66cd10e2c534bed2a4957d3790561498f3cce (patch) | |
tree | 3407ab6981342772269c08a4d799a85e550c9e94 /tests | |
parent | 447610b2603b8d258a90fc93ecb54708f70a002d (diff) |
Fix Travis and more
Diffstat (limited to 'tests')
-rw-r--r-- | tests/controller/documentcontrollertest.php | 16 | ||||
-rw-r--r-- | tests/phpunit.xml | 6 |
2 files changed, 8 insertions, 14 deletions
diff --git a/tests/controller/documentcontrollertest.php b/tests/controller/documentcontrollertest.php index ca6f4f54..88a654ac 100644 --- a/tests/controller/documentcontrollertest.php +++ b/tests/controller/documentcontrollertest.php @@ -24,7 +24,7 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase { $this->request = $this->getMockBuilder('\OCP\IRequest') ->disableOriginalConstructor() ->getMock() - ; + ; $this->settings = $this->getMockBuilder('\OCP\IConfig') ->disableOriginalConstructor() ->getMock() @@ -50,7 +50,10 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase { $userSession->login($this->uid, $this->password); \OC_Util::setupFS(); } - + + /** + * @expectedException \OCP\Files\NotFoundException + */ public function testRename(){ $result = array( 'status' => 'error', @@ -61,14 +64,5 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase { 'name' => 'newname.ext' ); $response = $this->controller->rename(500); - $this->assertEquals($result, $response); - } - - public function testCreate(){ - $currentDir = getcwd(); - chdir('../../../'); - $response = $this->controller->create(); - chdir($currentDir); - $this->assertEquals('success', $response['status']); } } diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 308dd35b..78c9fec1 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -11,10 +11,10 @@ <!-- filters for code coverage --> <filter> <whitelist> - <directory suffix=".php">../../documents</directory> + <directory suffix=".php">../../richdocuments</directory> <exclude> - <directory suffix=".php">../../documents/l10n</directory> - <directory suffix=".php">../../documents/tests</directory> + <directory suffix=".php">../../richdocuments/l10n</directory> + <directory suffix=".php">../../richdocuments/tests</directory> </exclude> </whitelist> </filter> |