Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(test): fix remove widget unit test #8171

Merged
merged 1 commit into from
Dec 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/php/CentreonLegacy/Core/Widget/RemoverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down