mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add tests for #7428
This commit is contained in:
parent
9208a0857e
commit
c14d1ffe93
1 changed files with 13 additions and 0 deletions
|
@ -4130,4 +4130,17 @@ SQL;
|
||||||
$this->assertEquals("'a'", $result);
|
$this->assertEquals("'a'", $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test isConnected
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function testIsConnected() {
|
||||||
|
$this->Dbo->disconnect();
|
||||||
|
$this->assertFalse($this->Dbo->isConnected(), 'Not connected now.');
|
||||||
|
|
||||||
|
$this->Dbo->connect();
|
||||||
|
$this->assertTrue($this->Dbo->isConnected(), 'Should be connected.');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue