lithium\tests\mocks\data\source\MockMongoConnection::update PHP Method

update() public method

public update ( $conditions, $update, $options )
    public function update($conditions, $update, $options)
    {
        return $this->_record(__FUNCTION__, compact('conditions', 'update', 'options'));
    }

Usage Example

Beispiel #1
0
 public function testUpdateNoConnectionException()
 {
     $db = new MockMongoConnection($this->_testConfig + array('autoConnect' => false));
     $this->expectException('Could not connect to the database.');
     $result = $db->update(null);
 }