1
0
mirror of https://github.com/flarum/core.git synced 2025-08-22 16:14:00 +02:00

Fix failing tests + CS

This commit is contained in:
Toby Zerner
2015-10-11 23:37:51 +10:30
parent 208d90293d
commit b53e612007
5 changed files with 22 additions and 20 deletions

View File

@@ -19,14 +19,14 @@ class DatabaseSettingsRepositoryTest extends TestCase
public function test_requesting_an_existing_setting_should_return_its_value()
{
$this->connection->shouldReceive("table->where->pluck")->andReturn('value');
$this->connection->shouldReceive("table->where->value")->andReturn('value');
$this->assertEquals('value', $this->repository->get('key'));
}
public function test_non_existent_setting_values_should_return_null()
{
$this->connection->shouldReceive("table->where->pluck")->andReturn(null);
$this->connection->shouldReceive("table->where->value")->andReturn(null);
$this->assertEquals('default', $this->repository->get('key', 'default'));
}