mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
Add automated tests for flarum/testing
This commit is contained in:
committed by
SychO9
parent
1fbf5fd029
commit
9ed29cd35e
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* For detailed copyright and license information, please view the
|
||||
* LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Testing\Tests\integration;
|
||||
|
||||
use Flarum\Settings\SettingsRepositoryInterface;
|
||||
use Flarum\Testing\integration\TestCase;
|
||||
|
||||
class TestCaseTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function can_add_settings_via_method()
|
||||
{
|
||||
$this->setting('hello', 'world');
|
||||
$this->setting('display_name_driver', 'something_other_than_username');
|
||||
|
||||
$settings = $this->app()->getContainer()->make(SettingsRepositoryInterface::class);
|
||||
|
||||
$this->assertEquals('world', $settings->get('hello'));
|
||||
$this->assertEquals('something_other_than_username', $settings->get('display_name_driver'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user