I followed documentation and created test for my plugin, but after run it I get this error:
BadMethodCallException: Method accessible does not exist.
I tested with build 318 (master branch) and 340 (bleed updates enabled).
I downloaded Translate Plugin and run its tests and there was the same result.
In stack trace it points to:
/tests/PluginTestCase.php:100
/tests/PluginTestCase.php:65
The error is thrown when: Artisan::call('october:up'); is called.
Could you please use the template found at the link below to explain how to reproduce this issue ? I have installed the translate plugin via the backend interface, then ran the phpunit.xml found in it and it just launched fine. A test is failing due to a string mismatch but PHPUnit is doing his job. I'm using the develop branch version of OctoberCMS which matches build 341.
https://github.com/octobercms/october/blob/develop/ISSUE_TEMPLATE.md
Expected behavior
No errors after running phpunit tests.
Actual behavior
Most of the tests runs with error.
BadMethodCallException: Method accessible does not exist.
Reproduce steps
php artisan october:upEnvironment: Windows, Latest Homestead box, PHP7.
Probably something to do with my configuration, but I cannot resolve this.
October build
341
Stack Trace example for failed test:
87) HalcyonModelTest::testFindAll
BadMethodCallException: Method accessible does not exist.
/home/vagrant/Code/oc-stable/vendor/laravel/framework/src/Illuminate/Support/Traits/Macroable.php:59
/home/vagrant/.composer/vendor/illuminate/support/helpers.php:426
/home/vagrant/Code/oc-stable/vendor/laravel/framework/src/Illuminate/Support/Arr.php:327
/home/vagrant/.composer/vendor/illuminate/support/helpers.php:229
/home/vagrant/Code/oc-stable/vendor/october/rain/src/Support/Collection.php:19
/home/vagrant/Code/oc-stable/vendor/october/rain/tests/Halcyon/ModelTest.php:28
Is your /home/vagrant/.composer/vendor/illuminate/support/helpers.php a correct version of Laravel for OctoberCMS (5.1 LTS). I don't get the same lines in helper.php (see the stacktrace below). The only difference I can see is that our Laravel helpers.php is loaded from /.composer instead of project path.

Thanks for helping solving this out.
I had laravel/envoy and laravel/installer in global composer for Laravel 5.2 and that was the issue.
After removing those packages, it works fine now.
Thanks again.
@gabsource thank you vevy much, you sloved my question。
In my php.ini,have:
auto_prepend_file = /home/xushengbin/.composer/vendor/autoload.php
It will first load file ~/.composer/vendor/illuminate/support/helpers.php, and the laravel version is 5.4。
so after remove this php.ini config, php artisan october:up run ok。
Most helpful comment
Thanks for helping solving this out.
I had
laravel/envoyandlaravel/installerin global composer for Laravel 5.2 and that was the issue.After removing those packages, it works fine now.
Thanks again.