Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-10 00:12:31 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-16 13:45:14 +0300
commitd9f6971d0b42ab20a5f5284d673da962ccbb5fe2 (patch)
treeb84fe9a5cc89401dca6bd6f0be035be57791ce52 /tests
parentb081bb24e5e48b082ad4b1585963c5c330419371 (diff)
let insertIfNotExist() throw the native DBALException - no need to hide the real exception
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/db.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/db.php b/tests/lib/db.php
index 73eef3a4d0e..056ce535436 100644
--- a/tests/lib/db.php
+++ b/tests/lib/db.php
@@ -125,7 +125,7 @@ class Test_DB extends \Test\TestCase {
);
foreach($categoryEntries as $entry) {
- $result = OC_DB::insertIfNotExist('*PREFIX*'.$this->table3,
+ $result = \OCP\DB::insertIfNotExist('*PREFIX*'.$this->table3,
array(
'uid' => $entry['user'],
'type' => $entry['type'],
@@ -148,7 +148,7 @@ class Test_DB extends \Test\TestCase {
);
foreach($categoryEntries as $entry) {
- $result = OC_DB::insertIfNotExist('*PREFIX*'.$this->table2,
+ $result = \OCP\DB::insertIfNotExist('*PREFIX*'.$this->table2,
array(
'addressbookid' => $entry['addressbookid'],
'fullname' => $entry['fullname'],
@@ -180,7 +180,7 @@ class Test_DB extends \Test\TestCase {
$this->assertEquals($carddata, $rowset[0]['carddata']);
// Try to insert a new row
- $result = OC_DB::insertIfNotExist('*PREFIX*'.$this->table2,
+ $result = \OCP\DB::insertIfNotExist('*PREFIX*'.$this->table2,
array(
'fullname' => $fullName,
'uri' => $uri,
@@ -199,7 +199,7 @@ class Test_DB extends \Test\TestCase {
}
public function testInsertIfNotExistsViolating() {
- $result = OC_DB::insertIfNotExist('*PREFIX*'.$this->table5,
+ $result = \OCP\DB::insertIfNotExist('*PREFIX*'.$this->table5,
array(
'storage' => 1,
'path_hash' => md5('welcome.txt'),
@@ -207,7 +207,7 @@ class Test_DB extends \Test\TestCase {
));
$this->assertEquals(1, $result);
- $result = OC_DB::insertIfNotExist('*PREFIX*'.$this->table5,
+ $result = \OCP\DB::insertIfNotExist('*PREFIX*'.$this->table5,
array(
'storage' => 1,
'path_hash' => md5('welcome.txt'),