lithium\tests\cases\data\source\MongoDbTest::testDeleteNoConnectionException PHP Method

testDeleteNoConnectionException() public method

    public function testDeleteNoConnectionException()
    {
        $db = new MongoDb(array('host' => '__invalid__', 'autoConnect' => false));
        $this->assertException('Could not connect to the database.', function () use($db) {
            $db->delete(null);
        });
    }