Skip to content

Commit

Permalink
fix: add new setting disableRefresh to the unit-test
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfgang <[email protected]>
  • Loading branch information
wofferl committed Nov 2, 2024
1 parent 53771ca commit a1f3811
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Unit/Controller/PageControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,17 +276,18 @@ public function testSettingsExploreUrlSet()
*/
public function testUpdateSettings()
{
$this->config->expects($this->exactly(5))
$this->config->expects($this->exactly(6))
->method('setUserValue')
->withConsecutive(
['becka', 'news', 'showAll', '1'],
['becka', 'news', 'compact', '1'],
['becka', 'news', 'preventReadOnScroll', '0'],
['becka', 'news', 'oldestFirst', '1'],
['becka', 'news', 'compactExpand', '1']
['becka', 'news', 'compactExpand', '1'],
['becka', 'news', 'disableRefresh', '0']
);

$this->controller->updateSettings(true, true, false, true, true);
$this->controller->updateSettings(true, true, false, true, true, false);
}

public function testExplore()
Expand Down

0 comments on commit a1f3811

Please sign in to comment.