82df35a59b
This is a major change for the next release of Miniflux. - There is now only one database that can supports multiple users - There is no automated schema migration for this release - A migration procedure is available in the ChangeLog file
26 lines
706 B
PHP
26 lines
706 B
PHP
<?php
|
|
|
|
use Miniflux\Model;
|
|
|
|
require_once __DIR__.'/BaseTest.php';
|
|
|
|
class ConfigModelTest extends BaseTest
|
|
{
|
|
public function testGetAllAndSave()
|
|
{
|
|
$settings = Model\Config\get_all(1);
|
|
$this->assertNotEmpty($settings);
|
|
$this->assertArrayHasKey('pinboard_enabled', $settings);
|
|
|
|
$this->assertTrue(Model\Config\save(1, array('foobar' => 'something')));
|
|
|
|
$settings = Model\Config\get_all(1);
|
|
$this->assertEquals('something', $settings['foobar']);
|
|
|
|
$this->assertTrue(Model\Config\save(1, array('foobar' => 'something else')));
|
|
|
|
$settings = Model\Config\get_all(1);
|
|
$this->assertEquals('something else', $settings['foobar']);
|
|
}
|
|
}
|