mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
DbStoreTest: pass an exception message
This commit is contained in:
parent
8f25dc3539
commit
9c7fb06904
@ -43,17 +43,17 @@ class FaultyDatabaseMock extends DatabaseMock
|
|||||||
{
|
{
|
||||||
public function insert($table, $row)
|
public function insert($table, $row)
|
||||||
{
|
{
|
||||||
throw new NotWritableError();
|
throw new NotWritableError('Mocked insert');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update($table, $columns, $where)
|
public function update($table, $columns, $where)
|
||||||
{
|
{
|
||||||
throw new NotWritableError();
|
throw new NotWritableError('Mocked update');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function delete($table, $where)
|
public function delete($table, $where)
|
||||||
{
|
{
|
||||||
throw new NotWritableError();
|
throw new NotWritableError('Mocked delete');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user