Closed jagarsoft closed 6 years ago
I think this issue comes from lacking of composer.lock in git
Your dev environment is not exactly the same i have after I run composer install
without composer.lock
Please have a look at reference at the end of this blog:
es-necesario-composer-json-siempre-no-basta-con-composer-lock
PS:
composer/composer/issues/4297
composer-its-all-about-the-lock-file
Hey there! thanks for the issue. The problem was that testbench updated the folder for the laravel files. Also the phpunit requirement is higher now which means we have to drop support for php 5.6 and 7.0. i will tag a new release for that.
https://github.com/joselfonseca/laravel-tactician/commit/81d453291ba89c8731058babb72211d911f8c123
https://github.com/joselfonseca/laravel-tactician/commit/81d453291ba89c8731058babb72211d911f8c123
https://github.com/joselfonseca/laravel-tactician/commit/1ce5072012f6c1d704c048423ca569e038cfde41
Also composer.lock generally is left for complete projects like here https://github.com/joselfonseca/laravel-api as in a library is it discarded.
For your library you may commit the composer.lock file if you want to. This can help your team to always test against the same dependency versions. However, this lock file will not have any effect on other projects that depend on it. It only has an effect on the main project.
https://getcomposer.org/doc/02-libraries.md#lock-file since this is a library, we do not commit the lock file.
Thanks for response
I finally fixed by myself just like this
diff --git a/tests/Generators/TestGenerators.php b/tests/Generators/TestGenerators.php
index 1c9b7b3..bbbd03a 100644
--- a/tests/Generators/TestGenerators.php
+++ b/tests/Generators/TestGenerators.php
@@ -69,7 +69,7 @@ class TestGenerators extends TestCase
*/
protected function getExpectedCommandFile()
{
- return __DIR__ . '/../../vendor/orchestra/testbench/fixture/app/CommandBus/Commands/FooCommand.php';
+ return __DIR__ . '/../../vendor/orchestra/testbench-core/fixture/app/CommandBus/Commands/FooCommand.php';
}
/**
@@ -77,7 +77,7 @@ class TestGenerators extends TestCase
*/
protected function getExpectedHandlerFile()
{
- return __DIR__ . '/../../vendor/orchestra/testbench/fixture/app/CommandBus/Handlers/FooHandler.php';
+ return __DIR__ . '/../../vendor/orchestra/testbench-core/fixture/app/CommandBus/Handlers/FooHandler.php';
}
/**
No need to update! Sorry for noise! PS: Great work!!!