Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/matomo-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Action for running tests
# This file has been automatically created.
# To recreate it you can run this command
# ./console generate:test-action --plugin="VisitorGenerator" --php-versions="matomo5_min_php,matomo5_max_php" --schedule-cron="30 2 * * 6"
# ./console generate:test-action --plugin="VisitorGenerator" --php-versions="matomo6_min_php,matomo6_max_php" --schedule-cron="30 2 * * 6"

name: Plugin VisitorGenerator Tests

Expand Down Expand Up @@ -37,8 +37,11 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 'matomo5_min_php', 'matomo5_max_php' ]
php: [ 'matomo6_min_php', 'matomo6_max_php' ]
target: ['minimum_required_matomo', 'maximum_supported_matomo']
database:
- { engine: 'Mysql', version: '8.0' }
- { engine: 'Mariadb', version: '10.6' }
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -52,6 +55,8 @@ jobs:
plugin-name: 'VisitorGenerator'
php-version: ${{ matrix.php }}
test-type: 'PluginTests'
mysql-engine: ${{ matrix.database.engine }}
mysql-version: ${{ matrix.database.version }}
matomo-test-branch: ${{ matrix.target }}
artifacts-pass: ${{ secrets.ARTIFACTS_PASS }}
upload-artifacts: ${{ matrix.php == 'matomo5_min_php' && matrix.target == 'maximum_supported_matomo' }}
upload-artifacts: ${{ matrix.php == 'matomo6_min_php' && matrix.target == 'maximum_supported_matomo' && matrix.database.engine == 'Mysql' }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ vendor/fzaninotto/faker/phpunit.xml.dist
/vue/dist/*.common.js
/vue/dist/*.map
/vue/dist/*.development.*
# only the minified bundle is served; the unminified one is no longer built
/vue/dist/*.umd.js
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@
* Added new command to send fake AI Bot Requests
- 5.1.5 - 2025-11-24
* Generate string order IDs occasionally
- 6.0.0 - 2026-08-09
* Compatibility with Matomo 6
2 changes: 1 addition & 1 deletion Generator/VisitsFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function generate($time = false, $idSite = 1, $limit = 1000)
if ($this->faker->boolean(50)) {
$tracker->setUserId($this->faker->firstName);
} else {
$tracker->setUserId(false);
$tracker->setUserId(null);
}
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"php": ">=7.2.5",
"php": ">=8.1.0",
"fakerphp/faker": "^1.24"
},
"config": {
Expand Down
8 changes: 5 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "VisitorGenerator",
"version": "5.1.5",
"version": "6.0.0",
"description": "Developer tool that lets you generate fake visits. Useful if you are working with plugins or themes or if you use the Matomo API.",
"keywords": ["development", "tools"],
"license": "GPL v3+",
"homepage": "https://matomo.org",
"require": {
"matomo": ">=5.2.0-b1,<6.0.0-b1"
"matomo": ">=6.0.0-b1,<7.0.0-b1"
},
"support": {
"issues": "https://github.com/matomo-org/plugin-VisitorGenerator/issues",
Expand Down
Loading
Loading