Comments (3)
Ok it's impossible to mock this library, you have to have Redis in your CI environment
from laravel-visits.
Mocking is not real testing .. but we can do it (With some changes) you could create an interface one for fake and second for redis .. if you want to invest your time on that I'll be happy to help. feel free to open a new PR
from laravel-visits.
The point is that I did not want to test the library per se, hence the mocking, I did want to test an HTTP endpoint that provides the user data, with also the visits count.
I would definitely dig into that more as soon as possible, but for now for everybody that uses this package with a CI they should attach a Redis service and connect it.
from laravel-visits.
Related Issues (20)
- getVisitorReferer() always get no value~ HOT 9
- geoip 1.0.x-dev is preventing install on Laravel 8 HOT 1
- redis queued to database store HOT 2
- Syntax error or access violation on Migration HOT 1
- Trying to access array offset on value of type null HOT 1
- Get visits of Item for specific date range?
- Add Multiple Tags
- all period show the same result HOT 2
- Get today visitors count on the whole app HOT 1
- Remove
- Empty array for countries and languages HOT 1
- Compatibiltiy with mongodb HOT 2
- How can I delete that redis record after deleting the post? HOT 1
- There is a problem with writing the data.
- Periods options only works a few of them HOT 4
- Compatibility issue with Laravel 10 HOT 1
- Redis server went away (php_network_getaddresses: getaddrinfo for cache failed) HOT 1
- Target class [eloquent] does not exist. HOT 3
- How to store redis data in mysql HOT 1
- Call to a member function setPrefix() on null HOT 3
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 laravel-visits.