Skip to content

Tests are failing when using set #90

@CharlieEtienne

Description

@CharlieEtienne

Laravel Settings

v3.4.1

Laravel Version

v12.28.1

Bug description

I can't make my tests work. My config is pretty standard. Or maybe it's related to pest 4?

Steps to reproduce

test('it can store and retrieve settings', function () {
    settings()->set('test_a_new_setting', 'My value');
    expect(settings('test_a_new_setting'))->toBe('My value');
});

// returns "Failed asserting that null is identical to 'My value'."

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions