mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
ReflectionMethod::setAccessible() is not compatible with PHP 5.2, causing fatal error in CI. Assuming that the db servers support nested transaction.
This commit is contained in:
parent
22cd65b7d8
commit
ffe0a18495
3 changed files with 0 additions and 12 deletions
|
@ -3586,10 +3586,6 @@ class MysqlTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testNestedTransaction() {
|
||||
$obj = new ReflectionMethod($this->Dbo, '_supportNestedTransaction');
|
||||
$obj->setAccessible(true);
|
||||
$this->skipIf($obj->invoke($this->Dbo) === false, 'The MySQL server do not support nested transaction');
|
||||
|
||||
$this->loadFixtures('Address');
|
||||
$model = ClassRegistry::init('Address');
|
||||
$model->hasOne = $model->hasMany = $model->belongsTo = $model->hasAndBelongsToMany = array();
|
||||
|
|
|
@ -915,10 +915,6 @@ class PostgresTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testNestedTransaction() {
|
||||
$obj = new ReflectionMethod($this->Dbo, '_supportNestedTransaction');
|
||||
$obj->setAccessible(true);
|
||||
$this->skipIf($obj->invoke($this->Dbo) === false, 'The Postgres server do not support nested transaction');
|
||||
|
||||
$this->loadFixtures('Article');
|
||||
$model = new Article();
|
||||
$model->hasOne = $model->hasMany = $model->belongsTo = $model->hasAndBelongsToMany = array();
|
||||
|
|
|
@ -389,10 +389,6 @@ class SqliteTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testNestedTransaction() {
|
||||
$obj = new ReflectionMethod($this->Dbo, '_supportNestedTransaction');
|
||||
$obj->setAccessible(true);
|
||||
$this->skipIf($obj->invoke($this->Dbo) === false, 'The Sqlite version do not support nested transaction');
|
||||
|
||||
$this->loadFixtures('User');
|
||||
$model = new User();
|
||||
$model->hasOne = $model->hasMany = $model->belongsTo = $model->hasAndBelongsToMany = array();
|
||||
|
|
Loading…
Reference in a new issue