Exemplo n.º 1
0
 public function testDeleteKey()
 {
     $connectionMock = $this->getMock('\\OC\\DB\\Connection', array(), array(), '', false);
     $connectionMock->expects($this->once())->method('delete')->with($this->equalTo('*PREFIX*preferences'), $this->equalTo(array('userid' => 'grg', 'appid' => 'bar', 'configkey' => 'foo')));
     $preferences = new OC\Preferences($connectionMock);
     $preferences->deleteKey('grg', 'bar', 'foo');
 }