From 232c3df2d5dca35a26c1af8999572bed08eab1e6 Mon Sep 17 00:00:00 2001 From: Loic Laurent Date: Wed, 4 Dec 2019 13:45:17 +0100 Subject: [PATCH] fix(test): fix remove widget unit test --- tests/php/CentreonLegacy/Core/Widget/RemoverTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/php/CentreonLegacy/Core/Widget/RemoverTest.php b/tests/php/CentreonLegacy/Core/Widget/RemoverTest.php index 6a1252501b0..8e43cb258dc 100644 --- a/tests/php/CentreonLegacy/Core/Widget/RemoverTest.php +++ b/tests/php/CentreonLegacy/Core/Widget/RemoverTest.php @@ -146,13 +146,16 @@ public function tearDown() $this->container = null; } + /** + * Case where we remove one widget + */ public function testRemove() { $query = 'DELETE FROM widget_models ' . 'WHERE directory = :directory '; $this->db->addResultSet( $query, - array() + array(1) ); $this->container->registerProvider(new ConfigurationDBProvider($this->db));