Skip the insertIfNotExists() tests on Oracle because it doesn't work with clob
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3ec48cd59f
commit
e3b3ff6d43
|
@ -203,6 +203,10 @@ class ConnectionTest extends \Test\TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInsertIfNotExist() {
|
public function testInsertIfNotExist() {
|
||||||
|
if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') === 'oci') {
|
||||||
|
self::markTestSkipped('Insert if not exist does not work with clob on oracle');
|
||||||
|
}
|
||||||
|
|
||||||
$this->makeTestTable();
|
$this->makeTestTable();
|
||||||
$categoryEntries = [
|
$categoryEntries = [
|
||||||
['user' => 'test', 'category' => 'Family', 'expectedResult' => 1],
|
['user' => 'test', 'category' => 'Family', 'expectedResult' => 1],
|
||||||
|
@ -232,6 +236,10 @@ class ConnectionTest extends \Test\TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInsertIfNotExistNull() {
|
public function testInsertIfNotExistNull() {
|
||||||
|
if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') === 'oci') {
|
||||||
|
self::markTestSkipped('Insert if not exist does not work with clob on oracle');
|
||||||
|
}
|
||||||
|
|
||||||
$this->makeTestTable();
|
$this->makeTestTable();
|
||||||
$categoryEntries = [
|
$categoryEntries = [
|
||||||
['addressbookid' => 123, 'fullname' => null, 'expectedResult' => 1],
|
['addressbookid' => 123, 'fullname' => null, 'expectedResult' => 1],
|
||||||
|
@ -255,6 +263,10 @@ class ConnectionTest extends \Test\TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInsertIfNotExistDonTOverwrite() {
|
public function testInsertIfNotExistDonTOverwrite() {
|
||||||
|
if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') === 'oci') {
|
||||||
|
self::markTestSkipped('Insert if not exist does not work with clob on oracle');
|
||||||
|
}
|
||||||
|
|
||||||
$this->makeTestTable();
|
$this->makeTestTable();
|
||||||
$fullName = 'fullname test';
|
$fullName = 'fullname test';
|
||||||
$uri = 'uri_1';
|
$uri = 'uri_1';
|
||||||
|
@ -291,6 +303,10 @@ class ConnectionTest extends \Test\TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInsertIfNotExistsViolating() {
|
public function testInsertIfNotExistsViolating() {
|
||||||
|
if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') === 'oci') {
|
||||||
|
self::markTestSkipped('Insert if not exist does not work with clob on oracle');
|
||||||
|
}
|
||||||
|
|
||||||
$this->makeTestTable();
|
$this->makeTestTable();
|
||||||
$result = $this->connection->insertIfNotExist('*PREFIX*table',
|
$result = $this->connection->insertIfNotExist('*PREFIX*table',
|
||||||
[
|
[
|
||||||
|
@ -321,6 +337,10 @@ class ConnectionTest extends \Test\TestCase {
|
||||||
* @param array $compareKeys
|
* @param array $compareKeys
|
||||||
*/
|
*/
|
||||||
public function testInsertIfNotExistsViolatingUnique($compareKeys) {
|
public function testInsertIfNotExistsViolatingUnique($compareKeys) {
|
||||||
|
if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') === 'oci') {
|
||||||
|
self::markTestSkipped('Insert if not exist does not work with clob on oracle');
|
||||||
|
}
|
||||||
|
|
||||||
$this->makeTestTable();
|
$this->makeTestTable();
|
||||||
$result = $this->connection->insertIfNotExist('*PREFIX*table',
|
$result = $this->connection->insertIfNotExist('*PREFIX*table',
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue