Skip to content

Commit

Permalink
Forward port test for #7428
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Nov 28, 2015
1 parent 8b81a91 commit 2180fd0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/TestCase/Database/Driver/MysqlTest.php
Expand Up @@ -128,4 +128,18 @@ public function testConnectionConfigCustom()
->will($this->returnValue($connection));
$driver->connect($config);
}

/**
* Test isConnected
*
* @return void
*/
public function testIsConnected() {
$connection = ConnectionManager::get('test');
$connection->disconnect();
$this->assertFalse($connection->isConnected(), 'Not connected now.');

$connection->connect();
$this->assertTrue($connection->isConnected(), 'Should be connected.');
}
}

0 comments on commit 2180fd0

Please sign in to comment.