Error: Class 'LaravelLocalization' not found



  • running a phpunit test on a Module I'm developing and got the following errors

    1) Modules\Brokerquotes\Tests\Request\BrokerquotesRequestTest::testIsRequestHasInsureeModel
    Error: Class 'LaravelLocalization' not found
    
    /home/vagrant/Code/dohlapse/Modules/Core/Http/routes.php:14
    /home/vagrant/Code/dohlapse/Modules/Core/start.php:3
    /home/vagrant/Code/dohlapse/vendor/nwidart/laravel-modules/src/Module.php:292
    /home/vagrant/Code/dohlapse/vendor/nwidart/laravel-modules/src/Module.php:254
    /home/vagrant/Code/dohlapse/vendor/nwidart/laravel-modules/src/Repository.php:312
    /home/vagrant/Code/dohlapse/vendor/nwidart/laravel-modules/src/Providers/BootstrapServiceProvider.php:22
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:586
    /home/vagrant/Code/dohlapse/vendor/nwidart/laravel-modules/src/ModulesServiceProvider.php:38
    /home/vagrant/Code/dohlapse/vendor/nwidart/laravel-modules/src/LaravelModulesServiceProvider.php:15
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Container/Container.php:549
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:792
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:775
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:776
    /home/vagrant/Code/dohlapse/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17
    /home/vagrant/Code/dohlapse/vendor/orchestra/testbench-core/src/Traits/CreatesApplication.php:312
    /home/vagrant/Code/dohlapse/vendor/orchestra/testbench-core/src/Traits/CreatesApplication.php:206
    /home/vagrant/Code/dohlapse/vendor/orchestra/testbench-core/src/TestCase.php:107
    /home/vagrant/Code/dohlapse/vendor/orchestra/testbench-core/src/TestCase.php:84
    /home/vagrant/Code/dohlapse/Modules/Brokerquotes/Tests/BaseBrokerquotesTest.php:25
    /home/vagrant/Code/dohlapse/Modules/Brokerquotes/Tests/Request/BrokerquotesBaseRequestTest.php:22
    /home/vagrant/Code/dohlapse/Modules/Brokerquotes/Tests/Request/BrokerquotesRequestTest.php:15
    

    The application package is installed



  • @kenmonster

    try adding a backslash in front

    \LaravelLocalization


Log in to reply
 

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.