Comments (9)
As far as i can understand from your description, this is an issue with your configuration and not apiato itself, right?
from core.
Issue is manifested in my configuration, but it is in apiato because testing needs to work on different configurations.
from core.
would it help to simply adjust the phpunit.xml
configuration file in your own project?
from core.
@johannesschobel I could try. Do You have any suggestion how?
from core.
you can add new (or overwrite existing) env
values in the phpunit.xml
file. Take a look at the existing file in order to see how this is specified. Maybe this will help / solve your issue?!
Normally, you should define your custom configuration for the test-environment in this file. However, you may want to check out PHPUnit itself and see if there may be other possibilities to set specific variables..
from core.
any update on this @Nesh83 ?
from core.
@johannesschobel Had no luck in making it work by changing an environment.
from core.
then, how can we address this issue without breaking something? any ideas? lets discuss here
from core.
I have the same problem. When I dd() those variables I get this:
$loadersDirectory = str_replace(getcwd(), '', __DIR__);
dump(getcwd());
dump(__DIR__);
dump($loadersDirectory);
dd($loadersDirectory);
"/Users/jurejager/Code/api.webshop/app/Containers/Address/UI/API/Tests/Functional"
"/Users/jurejager/Code/api.webshop/vendor/apiato/core/Loaders"
"/Users/jurejager/Code/api.webshop/vendor/apiato/core/Loaders"
"/Users/jurejager/Code/api.webshop/vendor/apiato/core/Loaders"
getcwd()
is not returning correct string when testing.
Like @Nesh83 said, I have changed from:
$newFactoriesPath = $loadersDirectory . '/FactoryMixer';
to
$newFactoriesPath = str_replace_first(base_path(), '', $loadersDirectory) . '/FactoryMixer';
and now it works.
How can I fix this by changing phpunit.xml
?
from core.
Related Issues (20)
- \Apiato\Core\Abstracts\Events\Dispatcher\Dispatcher is not available on DatabaseServiceProvider boot HOT 1
- Api Version HOT 6
- Authentication testing environment HOT 8
- contact johannes HOT 2
- Add support to middleware prioritization
- Laravel 6 instalation problem HOT 1
- Only hashed ids allowed issue HOT 1
- Error on container creation: Container already exists HOT 2
- CamelCase not Supported in Model HOT 1
- API stop working when cache rebuild HOT 4
- Search Query Parameter with hashId HOT 3
- Ship Blade Resource Views (has not found and not loaded) HOT 2
- method ::factory() in model apiato 11.0.0 HOT 3
- Exception when try to generate an WEB CRUD Controller from generator HOT 2
- invoked route bug HOT 1
- Update to Laravel 10 HOT 1
- PHP 8.1 warning on passing `null` to `explode` HOT 1
- CacheableRepository return type error HOT 3
- Functional problem with API_PREFIX
- Content-Type Response Header HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.