miniflux-legacy/tests/unit/ConfigModelTest.php
Frederic Guillot 82df35a59b Change the database structure to have a single database
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
2016-12-26 09:51:38 -05:00

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']);
}
}