Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Typoscript from setup.ts is not accessible #30

Open

Description

@robert197

Hey,
It would be very useful to have an access to typoscript defined in setup.ts / setup.txt.
I've tried to get an object with this settings or even mock it but didn't find a way to make it possible.
Can you support this important feature or maybe give a sign how to make it happen?

Activity

  1. robert197 commented on Jun 15, 2017

    @robert197
    Author

    We were able to fix this problem with another library called "Mockery"

     $settingsProviderMock = Mockery::mock(
                'overload:' . \anyNameSpace\anyNamespace\Settings\SettingsProvider::class
            )->makePartial();
            $settingsProviderMock->shouldReceive('fileStorage')->once()->andReturn(2);
  2. IchHabRecht commented on Jun 22, 2017

    @IchHabRecht
    Contributor

    Hi Robert,

    I'm not quite sure what the actual problem is/was but did you have a look at mocks and/or prophecies in PHPUnit (https://phpunit.de/manual/current/en/test-doubles.html).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions