[icinga-checkins] icinga.org: icingaweb2/master: DbStoreTest: pass an exception message

git at icinga.org git at icinga.org
Wed Jan 4 18:13:33 CET 2017


Module: icingaweb2
Branch: master
Commit: 9c7fb0690485aa79642d4bef74f095aab0982778
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=9c7fb0690485aa79642d4bef74f095aab0982778

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Jan  4 18:12:56 2017 +0100

DbStoreTest: pass an exception message

---

 test/php/library/Icinga/User/Store/DbStoreTest.php |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/php/library/Icinga/User/Store/DbStoreTest.php b/test/php/library/Icinga/User/Store/DbStoreTest.php
index a73f3fa..54855cf 100644
--- a/test/php/library/Icinga/User/Store/DbStoreTest.php
+++ b/test/php/library/Icinga/User/Store/DbStoreTest.php
@@ -43,17 +43,17 @@ class FaultyDatabaseMock extends DatabaseMock
 {
     public function insert($table, $row)
     {
-        throw new NotWritableError();
+        throw new NotWritableError('Mocked insert');
     }
 
     public function update($table, $columns, $where)
     {
-        throw new NotWritableError();
+        throw new NotWritableError('Mocked update');
     }
 
     public function delete($table, $where)
     {
-        throw new NotWritableError();
+        throw new NotWritableError('Mocked delete');
     }
 }
 



More information about the icinga-checkins mailing list