summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-08-08 08:46:30 -0700
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-08-08 08:46:30 -0700
commite38025ba6790938155bbd956d024d639ceeed754 (patch)
tree95ad07f267d68affce2863127a91aa952b7f49b5 /tests/lib
parentc24bf47db8966a08bff8d6972b7e06894f4a0391 (diff)
parentd563367b0f0bc6a419b8bf61b85aa701231bcad0 (diff)
downloadnextcloud-server-e38025ba6790938155bbd956d024d639ceeed754.tar.gz
nextcloud-server-e38025ba6790938155bbd956d024d639ceeed754.zip
Merge pull request #4151 from owncloud/doctrine-object
Move dbtype depending logic into object per type
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/db.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/lib/db.php b/tests/lib/db.php
index 79e05f30a1c..51edbf7b309 100644
--- a/tests/lib/db.php
+++ b/tests/lib/db.php
@@ -76,13 +76,11 @@ class Test_DB extends PHPUnit_Framework_TestCase {
$query = OC_DB::prepare('INSERT INTO `*PREFIX*'.$this->table2.'` (`fullname`,`uri`) VALUES (?,?)');
$result1 = OC_DB::executeAudited($query, array('insertid 1','uri_1'));
$id1 = OC_DB::insertid('*PREFIX*'.$this->table2);
- $this->assertInternalType('int', $id1);
// we don't know the id we should expect, so insert another row
$result2 = OC_DB::executeAudited($query, array('insertid 2','uri_2'));
$id2 = OC_DB::insertid('*PREFIX*'.$this->table2);
// now we can check if the two ids are in correct order
- $this->assertInternalType('int', $id2);
$this->assertGreaterThan($id1, $id2);
}