Level 70
@untymage it might be hackey.
Have you tried with config(['key' => 'value']) in your test?
1 like
Summer Sale! All accounts are 50% off this week.
How can i tell phpunit to apply this setting for only certain classes and not for all?
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</phpunit>
Please or to participate in this conversation.