From e7c5305801d221a549fd77d41f29fb6b11aca7de Mon Sep 17 00:00:00 2001 From: Robert Lange <robert.lange@uni-leipzig.de> Date: Tue, 29 Nov 2022 11:02:54 +0100 Subject: [PATCH] refs #22013 [finc] add selenium tests * add getitbox tests for adrl * add basic tests for UBL * also refs #22797 * handle groups and different environments * add account test for WHZ * also refs #22801 * implement selenium grid for parallel execution * add adlr test for user delete / reactivation * add test for user partial order * also refs #22589 co-authored by: Alexander Purr <purr@ub.uni-leipzig.de> * remove redundant records * not part of rules section refs #22013 [finc] minimal doc improvements --- .gitignore | 3 +- module/finc/tests/selenium/README.md | 29 + module/finc/tests/selenium/composer.json | 21 + module/finc/tests/selenium/composer.lock | 3217 +++++++++++++++++ .../finc/tests/selenium/docker-compose.yaml | 45 + module/finc/tests/selenium/php.ini | 31 + module/finc/tests/selenium/php/Dockerfile | 30 + module/finc/tests/selenium/php/entrypoint.sh | 25 + module/finc/tests/selenium/php/php.ini | 29 + .../tests/selenium/tests/adlr/AdlrBase.php | 139 + .../selenium/tests/adlr/AdlrLoginBase.php | 16 + .../tests/adlr/Getit01DefaultTest.php | 55 + .../tests/adlr/Getit01ProfessorTest.php | 19 + .../tests/adlr/Getit01StudentTest.php | 20 + .../tests/adlr/Getit02DefaultTest.php | 56 + .../tests/adlr/Getit03DefaultTest.php | 52 + .../tests/adlr/Getit03ProfessorTest.php | 57 + .../tests/adlr/Getit03StudentTest.php | 18 + .../tests/adlr/Getit04DefaultTest.php | 49 + .../tests/adlr/Getit04ProfessorTest.php | 47 + .../tests/adlr/Getit04StudentTest.php | 18 + .../tests/adlr/Getit05DefaultTest.php | 47 + .../tests/adlr/Getit05ProfessorTest.php | 21 + .../tests/adlr/Getit05StudentTest.php | 20 + .../tests/adlr/Getit06DefaultTest.php | 48 + .../tests/adlr/Getit06ProfessorTest.php | 24 + .../tests/adlr/Getit06StudentTest.php | 20 + .../tests/adlr/Getit07DefaultTest.php | 48 + .../tests/adlr/Getit07ProfessorTest.php | 21 + .../tests/adlr/Getit07StudentTest.php | 20 + .../tests/adlr/Getit08DefaultTest.php | 48 + .../tests/adlr/Getit08ProfessorTest.php | 21 + .../tests/adlr/Getit08StudentTest.php | 20 + .../tests/adlr/Getit09DefaultTest.php | 41 + .../tests/adlr/Getit09ProfessorTest.php | 21 + .../tests/adlr/Getit09StudentTest.php | 20 + .../tests/adlr/Getit10DefaultTest.php | 48 + .../tests/adlr/Getit10ProfessorTest.php | 43 + .../tests/adlr/Getit10StudentTest.php | 20 + .../tests/adlr/Getit11DefaultTest.php | 49 + .../tests/adlr/Getit11ProfessorTest.php | 21 + .../tests/adlr/Getit11StudentTest.php | 20 + .../tests/adlr/Getit12DefaultTest.php | 57 + .../tests/adlr/Getit12ProfessorTest.php | 49 + .../tests/adlr/Getit12StudentTest.php | 20 + .../tests/adlr/Getit13DefaultTest.php | 63 + .../tests/adlr/Getit13ProfessorTest.php | 45 + .../tests/adlr/Getit13StudentTest.php | 20 + .../tests/adlr/Getit14DefaultTest.php | 63 + .../tests/adlr/Getit14ProfessorTest.php | 44 + .../tests/adlr/Getit14StudentTest.php | 20 + .../tests/adlr/Getit15DefaultTest.php | 58 + .../tests/adlr/Getit15ProfessorTest.php | 21 + .../tests/adlr/Getit15StudentTest.php | 20 + .../tests/adlr/Getit16DefaultTest.php | 47 + .../tests/adlr/Getit16ProfessorTest.php | 21 + .../tests/adlr/Getit16StudentTest.php | 20 + .../tests/adlr/Getit17DefaultTest.php | 54 + .../tests/adlr/Getit17ProfessorTest.php | 21 + .../tests/adlr/Getit17StudentTest.php | 20 + .../tests/adlr/Getit18DefaultTest.php | 48 + .../tests/adlr/Getit18ProfessorTest.php | 21 + .../tests/adlr/Getit18StudentTest.php | 20 + .../tests/adlr/Getit19DefaultTest.php | 41 + .../tests/adlr/Getit19ProfessorTest.php | 21 + .../tests/adlr/Getit19StudentTest.php | 20 + .../selenium/tests/adlr/LibrarianTrait.php | 14 + .../finc/tests/selenium/tests/adlr/Login.php | 7 + .../tests/selenium/tests/adlr/OrderTest.php | 85 + .../selenium/tests/adlr/ProfessorTrait.php | 14 + .../selenium/tests/adlr/StudentTrait.php | 14 + .../selenium/tests/adlr/UserDeleteTest.php | 97 + .../selenium/tests/de_15/AccountTest.php | 54 + .../selenium/tests/de_zwi2/AccountTest.php | 54 + .../tests/selenium/tests/finc/FincBase.php | 102 + 75 files changed, 5891 insertions(+), 1 deletion(-) create mode 100644 module/finc/tests/selenium/README.md create mode 100755 module/finc/tests/selenium/composer.json create mode 100755 module/finc/tests/selenium/composer.lock create mode 100755 module/finc/tests/selenium/docker-compose.yaml create mode 100755 module/finc/tests/selenium/php.ini create mode 100755 module/finc/tests/selenium/php/Dockerfile create mode 100755 module/finc/tests/selenium/php/entrypoint.sh create mode 100755 module/finc/tests/selenium/php/php.ini create mode 100644 module/finc/tests/selenium/tests/adlr/AdlrBase.php create mode 100644 module/finc/tests/selenium/tests/adlr/AdlrLoginBase.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit01DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit01ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit01StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit02DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit03DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit03ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit03StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit04DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit04ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit04StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit05DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit05ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit05StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit06DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit06ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit06StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit07DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit07ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit07StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit08DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit08ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit08StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit09DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit09ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit09StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit10DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit10ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit10StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit11DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit11ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit11StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit12DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit12ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit12StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit13DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit13ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit13StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit14DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit14ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit14StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit15DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit15ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit15StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit16DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit16ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit16StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit17DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit17ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit17StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit18DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit18ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit18StudentTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit19DefaultTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit19ProfessorTest.php create mode 100755 module/finc/tests/selenium/tests/adlr/Getit19StudentTest.php create mode 100644 module/finc/tests/selenium/tests/adlr/LibrarianTrait.php create mode 100644 module/finc/tests/selenium/tests/adlr/Login.php create mode 100755 module/finc/tests/selenium/tests/adlr/OrderTest.php create mode 100644 module/finc/tests/selenium/tests/adlr/ProfessorTrait.php create mode 100644 module/finc/tests/selenium/tests/adlr/StudentTrait.php create mode 100755 module/finc/tests/selenium/tests/adlr/UserDeleteTest.php create mode 100644 module/finc/tests/selenium/tests/de_15/AccountTest.php create mode 100644 module/finc/tests/selenium/tests/de_zwi2/AccountTest.php create mode 100644 module/finc/tests/selenium/tests/finc/FincBase.php diff --git a/.gitignore b/.gitignore index 20cbba2092d..e22b9e32818 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,5 @@ import/solrmarc.log* /docker-env.override.yml /.env **/compiled.css -**/print.css \ No newline at end of file +module/finc/tests/selenium/vendor/ +module/finc/tests/selenium/logs/ \ No newline at end of file diff --git a/module/finc/tests/selenium/README.md b/module/finc/tests/selenium/README.md new file mode 100644 index 00000000000..6856d7b8b38 --- /dev/null +++ b/module/finc/tests/selenium/README.md @@ -0,0 +1,29 @@ +Selenium Tests +====== + +Introduction +------------ +UI Tests for finc VuFind. +TODO: integrate into VuFind docker-compose and composer.json + +Requirements +------------ +* Docker version >= 20 + +Usage +------------ +1. running docker: + * ```docker-compose -f module/finc/tests/selenium/docker-compose.yaml up --scale firefox=[1|2|3|4|5]``` + * detailed example: ```docker-compose -f module/finc/tests/selenium/docker-compose.yaml up --scale firefox=3``` +2. running tests: + * ```docker exec -it [SELENIUM-PHP-CONTAINERNAME] sh -c "./vendor/bin/steward run [local|alpha|staging] [firefox|chrome] [--group [de_15|adlr|...]] --server-url http://selenium:4444/wd/hub -v"``` + * detailed example: ```docker exec -it selenium_php_1 sh -c "./vendor/bin/steward run staging firefox --group adlr --server-url http://selenium:4444/wd/hub -v"``` + +Documentation and Support +------------------------- +* php library: https://github.com/lmc-eu/steward +* docker: https://github.com/SeleniumHQ/docker-selenium +* examples: https://github.com/lmc-eu/steward-example/tree/main/tests +* commands: https://github.com/php-webdriver/php-webdriver/wiki/Example-command-reference +* GUI for selenium grid: http://localhost:4444/ui# +* Results: file:///[path to vufind directory]/module/finc/tests/selenium/logs/results.xml diff --git a/module/finc/tests/selenium/composer.json b/module/finc/tests/selenium/composer.json new file mode 100755 index 00000000000..76d0b2ab458 --- /dev/null +++ b/module/finc/tests/selenium/composer.json @@ -0,0 +1,21 @@ +{ + "name": "selenium-tests", + "license": "GPL-2.0", + "config": { + "platform": { + "php": "7.3.0" + } + }, + "autoload": { + "psr-4": { + "Selenium\\": "tests/" + } + }, + "require": { + "php": ">=7.3.0" + }, + "require-dev": { + "lmc/steward": "3.0.0", + "phpunit/phpunit": "8.5.15" + } +} diff --git a/module/finc/tests/selenium/composer.lock b/module/finc/tests/selenium/composer.lock new file mode 100755 index 00000000000..00114fd7405 --- /dev/null +++ b/module/finc/tests/selenium/composer.lock @@ -0,0 +1,3217 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "92b40d0d5b69eef490bb96ef7dea38f8", + "packages": [], + "packages-dev": [ + { + "name": "beberlei/assert", + "version": "v3.3.2", + "source": { + "type": "git", + "url": "https://github.com/beberlei/assert.git", + "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/beberlei/assert/zipball/cb70015c04be1baee6f5f5c953703347c0ac1655", + "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "php": "^7.0 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "*", + "phpstan/phpstan": "*", + "phpunit/phpunit": ">=6.0.0", + "yoast/phpunit-polyfills": "^0.1.0" + }, + "suggest": { + "ext-intl": "Needed to allow Assertion::count(), Assertion::isCountable(), Assertion::minCount(), and Assertion::maxCount() to operate on ResourceBundles" + }, + "type": "library", + "autoload": { + "files": [ + "lib/Assert/functions.php" + ], + "psr-4": { + "Assert\\": "lib/Assert" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de", + "role": "Lead Developer" + }, + { + "name": "Richard Quadling", + "email": "rquadling@gmail.com", + "role": "Collaborator" + } + ], + "description": "Thin assertion library for input validation in business models.", + "keywords": [ + "assert", + "assertion", + "validation" + ], + "time": "2021-12-16T21:41:27+00:00" + }, + { + "name": "clue/graph", + "version": "v0.9.3", + "source": { + "type": "git", + "url": "https://github.com/graphp/graph.git", + "reference": "d1661c0a0e011a8550fa60ae5354f230d1555909" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/graphp/graph/zipball/d1661c0a0e011a8550fa60ae5354f230d1555909", + "reference": "d1661c0a0e011a8550fa60ae5354f230d1555909", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" + }, + "suggest": { + "graphp/algorithms": "Common graph algorithms, such as Dijkstra and Moore-Bellman-Ford (shortest path), minimum spanning tree (MST), Kruskal, Prim and many more..", + "graphp/graphviz": "GraphViz graph drawing / DOT output" + }, + "type": "library", + "autoload": { + "psr-4": { + "Fhaculty\\Graph\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering" + } + ], + "description": "GraPHP is the mathematical graph/network library written in PHP.", + "homepage": "https://github.com/graphp/graph", + "keywords": [ + "edge", + "graph", + "mathematical", + "network", + "vertex" + ], + "time": "2021-12-30T09:22:01+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.6", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.5", + "vimeo/psalm": "^4.25" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "time": "2022-10-20T09:10:12+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2022-03-03T08:28:38+00:00" + }, + { + "name": "graphp/algorithms", + "version": "v0.8.2", + "source": { + "type": "git", + "url": "https://github.com/graphp/algorithms.git", + "reference": "abebbc44109f65c2962cd66f048ea3b8563e0a4a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/graphp/algorithms/zipball/abebbc44109f65c2962cd66f048ea3b8563e0a4a", + "reference": "abebbc44109f65c2962cd66f048ea3b8563e0a4a", + "shasum": "" + }, + "require": { + "clue/graph": "~0.9.0|~0.8.0", + "php": ">=5.3" + }, + "require-dev": { + "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "Graphp\\Algorithms\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering" + } + ], + "description": "Common mathematical graph algorithms implemented in PHP", + "homepage": "https://github.com/graphp/algorithms", + "keywords": [ + "Graph algorithms", + "dijkstra", + "kruskal", + "minimum spanning tree", + "moore-bellman-ford", + "prim", + "shortest path" + ], + "time": "2020-02-20T18:01:41+00:00" + }, + { + "name": "hanneskod/classtools", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/hanneskod/classtools.git", + "reference": "d365ddac0e602027c0471ea292f4ba2afcb49394" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hanneskod/classtools/zipball/d365ddac0e602027c0471ea292f4ba2afcb49394", + "reference": "d365ddac0e602027c0471ea292f4ba2afcb49394", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4", + "php": ">=7.1", + "symfony/finder": "^4|^5" + }, + "type": "library", + "autoload": { + "psr-4": { + "hanneskod\\classtools\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "WTFPL" + ], + "authors": [ + { + "name": "Hannes Forsgård", + "email": "hannes.forsgard@fripost.org" + } + ], + "description": "Find, extract and process classes from file system", + "homepage": "https://github.com/hanneskod/classtools", + "keywords": [ + "class finder", + "code generator", + "metaprogramming", + "minimizer" + ], + "time": "2020-03-05T20:41:28+00:00" + }, + { + "name": "lmc/steward", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/lmc-eu/steward.git", + "reference": "39c5286e5d7a28d596573982b960604b1d330850" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lmc-eu/steward/zipball/39c5286e5d7a28d596573982b960604b1d330850", + "reference": "39c5286e5d7a28d596573982b960604b1d330850", + "shasum": "" + }, + "require": { + "beberlei/assert": "^3.0", + "clue/graph": "^0.9.2", + "doctrine/inflector": "^2.0.3", + "ext-curl": "*", + "ext-dom": "*", + "ext-filter": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-simplexml": "*", + "ext-zip": "*", + "graphp/algorithms": "^0.8.2", + "hanneskod/classtools": "^1.2", + "ondram/ci-detector": "^4.0", + "php": "^7.3 || ^8.0", + "php-webdriver/webdriver": "^1.10.0", + "phpdocumentor/reflection-docblock": "^5.2", + "phpunit/phpunit": "^8.5.15", + "symfony/console": "^5.2.6", + "symfony/event-dispatcher": "^5.2", + "symfony/event-dispatcher-contracts": "^2.2", + "symfony/filesystem": "^5.2", + "symfony/finder": "^5.2", + "symfony/options-resolver": "^5.2", + "symfony/polyfill-mbstring": "^1.12", + "symfony/process": "^5.2", + "symfony/stopwatch": "^5.2", + "symfony/yaml": "^5.2" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.13", + "lmc/coding-standard": "^3.0.0", + "php-mock/php-mock-phpunit": "^2.6.0", + "php-parallel-lint/php-parallel-lint": "^1.2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^0.12.80", + "phpstan/phpstan-phpunit": "^0.12.17", + "symfony/var-dumper": "^5.2" + }, + "suggest": { + "ext-posix": "For colored output", + "ext-xdebug": "For remote tests debugging" + }, + "bin": [ + "bin/steward", + "bin/steward.php" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Lmc\\Steward\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ondřej Machulda", + "email": "ondrej.machulda@gmail.com" + }, + { + "name": "LMC s.r.o.", + "homepage": "https://github.com/lmc-eu" + } + ], + "description": "Steward - makes Selenium WebDriver + PHPUnit testing easy and robust", + "keywords": [ + "phpunit", + "selenium", + "testing", + "webdriver" + ], + "time": "2021-12-02T22:53:23+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "time": "2022-03-03T13:19:32+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.15.2", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.0" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "time": "2022-11-12T15:38:23+00:00" + }, + { + "name": "ondram/ci-detector", + "version": "4.1.0", + "source": { + "type": "git", + "url": "https://github.com/OndraM/ci-detector.git", + "reference": "8a4b664e916df82ff26a44709942dfd593fa6f30" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/OndraM/ci-detector/zipball/8a4b664e916df82ff26a44709942dfd593fa6f30", + "reference": "8a4b664e916df82ff26a44709942dfd593fa6f30", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.2", + "lmc/coding-standard": "^1.3 || ^2.1", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0.5", + "phpstan/phpstan": "^0.12.58", + "phpstan/phpstan-phpunit": "^0.12.16", + "phpunit/phpunit": "^7.1 || ^8.0 || ^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "OndraM\\CiDetector\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ondřej Machulda", + "email": "ondrej.machulda@gmail.com" + } + ], + "description": "Detect continuous integration environment and provide unified access to properties of current build", + "keywords": [ + "CircleCI", + "Codeship", + "Wercker", + "adapter", + "appveyor", + "aws", + "aws codebuild", + "azure", + "azure devops", + "azure pipelines", + "bamboo", + "bitbucket", + "buddy", + "ci-info", + "codebuild", + "continuous integration", + "continuousphp", + "devops", + "drone", + "github", + "gitlab", + "interface", + "jenkins", + "pipelines", + "sourcehut", + "teamcity", + "travis" + ], + "time": "2021-04-14T09:16:52+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "time": "2021-07-20T11:28:43+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "php-webdriver/webdriver", + "version": "1.13.1", + "source": { + "type": "git", + "url": "https://github.com/php-webdriver/php-webdriver.git", + "reference": "6dfe5f814b796c1b5748850aa19f781b9274c36c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/6dfe5f814b796c1b5748850aa19f781b9274c36c", + "reference": "6dfe5f814b796c1b5748850aa19f781b9274c36c", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-zip": "*", + "php": "^5.6 || ~7.0 || ^8.0", + "symfony/polyfill-mbstring": "^1.12", + "symfony/process": "^2.8 || ^3.1 || ^4.0 || ^5.0 || ^6.0" + }, + "replace": { + "facebook/webdriver": "*" + }, + "require-dev": { + "ondram/ci-detector": "^2.1 || ^3.5 || ^4.0", + "php-coveralls/php-coveralls": "^2.4", + "php-mock/php-mock-phpunit": "^1.1 || ^2.0", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpunit/phpunit": "^5.7 || ^7 || ^8 || ^9", + "squizlabs/php_codesniffer": "^3.5", + "symfony/var-dumper": "^3.3 || ^4.0 || ^5.0 || ^6.0" + }, + "suggest": { + "ext-SimpleXML": "For Firefox profile creation" + }, + "type": "library", + "autoload": { + "files": [ + "lib/Exception/TimeoutException.php" + ], + "psr-4": { + "Facebook\\WebDriver\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP client for Selenium WebDriver. Previously facebook/webdriver.", + "homepage": "https://github.com/php-webdriver/php-webdriver", + "keywords": [ + "Chromedriver", + "geckodriver", + "php", + "selenium", + "webdriver" + ], + "time": "2022-10-11T11:49:44+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2020-06-27T09:03:43+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "5.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^1.3", + "webmozart/assert": "^1.9.1" + }, + "require-dev": { + "mockery/mockery": "~1.3.2", + "psalm/phar": "^4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "account@ijaap.nl" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2021-10-19T17:43:47+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "77a32518733312af16a44300404e945338981de3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", + "reference": "77a32518733312af16a44300404e945338981de3", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.0" + }, + "require-dev": { + "ext-tokenizer": "*", + "psalm/phar": "^4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "time": "2022-03-15T21:29:03+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.15.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.2", + "php": "^7.2 || ~8.0, <8.2", + "phpdocumentor/reflection-docblock": "^5.2", + "sebastian/comparator": "^3.0 || ^4.0", + "sebastian/recursion-context": "^3.0 || ^4.0" + }, + "require-dev": { + "phpspec/phpspec": "^6.0 || ^7.0", + "phpunit/phpunit": "^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Prophecy\\": "src/Prophecy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2021-12-08T12:19:24+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "7.0.15", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "819f92bba8b001d4363065928088de22f25a3a48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/819f92bba8b001d4363065928088de22f25a3a48", + "reference": "819f92bba8b001d4363065928088de22f25a3a48", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": ">=7.2", + "phpunit/php-file-iterator": "^2.0.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^3.1.3 || ^4.0", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^4.2.2", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1.3" + }, + "require-dev": { + "phpunit/phpunit": "^8.2.2" + }, + "suggest": { + "ext-xdebug": "^2.7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2021-07-26T12:20:09+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "2.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2021-12-02T12:42:26+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "2.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2020-11-30T08:20:02+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "abandoned": true, + "time": "2020-08-04T08:28:15+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "8.5.15", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "038d4196d8e8cb405cd5e82cedfe413ad6eef9ef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/038d4196d8e8cb405cd5e82cedfe413ad6eef9ef", + "reference": "038d4196d8e8cb405cd5e82cedfe413ad6eef9ef", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.0", + "phar-io/manifest": "^2.0.1", + "phar-io/version": "^3.0.2", + "php": ">=7.2", + "phpspec/prophecy": "^1.10.3", + "phpunit/php-code-coverage": "^7.0.12", + "phpunit/php-file-iterator": "^2.0.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^2.1.2", + "sebastian/comparator": "^3.0.2", + "sebastian/diff": "^3.0.2", + "sebastian/environment": "^4.2.3", + "sebastian/exporter": "^3.1.2", + "sebastian/global-state": "^3.0.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^2.0.1", + "sebastian/type": "^1.1.3", + "sebastian/version": "^2.0.1" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*", + "phpunit/php-invoker": "^2.0.0" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.5-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2021-03-17T07:27:54+00:00" + }, + { + "name": "psr/container", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "time": "2021-03-05T17:36:06+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "time": "2020-11-30T08:15:22+00:00" + }, + { + "name": "sebastian/comparator", + "version": "3.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "sebastian/diff": "^3.0", + "sebastian/exporter": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2022-09-14T12:31:48+00:00" + }, + { + "name": "sebastian/diff", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/14f72dd46eaf2f2293cbe79c93cc0bc43161a211", + "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8.0", + "symfony/process": "^2 || ^3.3 || ^4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "time": "2020-11-30T07:59:04+00:00" + }, + { + "name": "sebastian/environment", + "version": "4.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2020-11-30T07:53:42+00:00" + }, + { + "name": "sebastian/exporter", + "version": "3.1.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/73a9676f2833b9a7c36968f9d882589cd75511e6", + "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2022-09-14T06:00:17+00:00" + }, + { + "name": "sebastian/global-state", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/de036ec91d55d2a9e0db2ba975b512cdb1c23921", + "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^8.0" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2022-02-10T06:55:38+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2020-11-30T07:40:27+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "time": "2020-11-30T07:37:18+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2020-11-30T07:34:24+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2020-11-30T07:30:19+00:00" + }, + { + "name": "sebastian/type", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "time": "2020-11-30T07:25:11+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "symfony/console", + "version": "v5.4.15", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "ea59bb0edfaf9f28d18d8791410ee0355f317669" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/ea59bb0edfaf9f28d18d8791410ee0355f317669", + "reference": "ea59bb0edfaf9f28d18d8791410ee0355f317669", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.1|^6.0" + }, + "conflict": { + "psr/log": ">=3", + "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", + "symfony/event-dispatcher": "<4.4", + "symfony/lock": "<4.4", + "symfony/process": "<4.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0" + }, + "require-dev": { + "psr/log": "^1|^2", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/lock": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/var-dumper": "^4.4|^5.0|^6.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], + "time": "2022-10-26T21:41:52+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "time": "2022-01-02T09:53:40+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc", + "reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/event-dispatcher-contracts": "^2|^3", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "symfony/dependency-injection": "<4.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-foundation": "^4.4|^5.0|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^4.4|^5.0|^6.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "time": "2022-05-05T16:45:39+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2022-01-02T09:53:40+00:00" + }, + { + "name": "symfony/filesystem", + "version": "v5.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "ac09569844a9109a5966b9438fc29113ce77cf51" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/ac09569844a9109a5966b9438fc29113ce77cf51", + "reference": "ac09569844a9109a5966b9438fc29113ce77cf51", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "time": "2022-09-21T19:53:16+00:00" + }, + { + "name": "symfony/finder", + "version": "v5.4.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/7872a66f57caffa2916a584db1aa7f12adc76f8c", + "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "time": "2022-07-29T07:37:50+00:00" + }, + { + "name": "symfony/options-resolver", + "version": "v5.4.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/options-resolver.git", + "reference": "54f14e36aa73cb8f7261d7686691fd4d75ea2690" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/54f14e36aa73cb8f7261d7686691fd4d75ea2690", + "reference": "54f14e36aa73cb8f7261d7686691fd4d75ea2690", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php73": "~1.0", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\OptionsResolver\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an improved replacement for the array_replace PHP function", + "homepage": "https://symfony.com", + "keywords": [ + "config", + "configuration", + "options" + ], + "time": "2022-07-20T13:00:38+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php73", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/process", + "version": "v5.4.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/6e75fe6874cbc7e4773d049616ab450eff537bf1", + "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "time": "2022-06-27T16:58:25+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/container": "^1.1", + "symfony/deprecation-contracts": "^2.1|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2022-05-30T19:17:29+00:00" + }, + { + "name": "symfony/stopwatch", + "version": "v5.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/stopwatch.git", + "reference": "6df7a3effde34d81717bbef4591e5ffe32226d69" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/6df7a3effde34d81717bbef4591e5ffe32226d69", + "reference": "6df7a3effde34d81717bbef4591e5ffe32226d69", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/service-contracts": "^1|^2|^3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Stopwatch\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a way to profile code", + "homepage": "https://symfony.com", + "time": "2022-09-28T13:19:49+00:00" + }, + { + "name": "symfony/string", + "version": "v5.4.15", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "571334ce9f687e3e6af72db4d3b2a9431e4fd9ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/571334ce9f687e3e6af72db4d3b2a9431e4fd9ed", + "reference": "571334ce9f687e3e6af72db4d3b2a9431e4fd9ed", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" + }, + "conflict": { + "symfony/translation-contracts": ">=3.0" + }, + "require-dev": { + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/http-client": "^4.4|^5.0|^6.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0|^6.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "time": "2022-10-05T15:16:54+00:00" + }, + { + "name": "symfony/yaml", + "version": "v5.4.14", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "e83fe9a72011f07c662da46a05603d66deeeb487" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/e83fe9a72011f07c662da46a05603d66deeeb487", + "reference": "e83fe9a72011f07c662da46a05603d66deeeb487", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<5.3" + }, + "require-dev": { + "symfony/console": "^5.3|^6.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "time": "2022-10-03T15:15:50+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "time": "2021-07-28T10:34:58+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2022-06-03T18:03:27+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=7.3.0" + }, + "platform-dev": [], + "platform-overrides": { + "php": "7.3.0" + } +} diff --git a/module/finc/tests/selenium/docker-compose.yaml b/module/finc/tests/selenium/docker-compose.yaml new file mode 100755 index 00000000000..cfd8a9ffc65 --- /dev/null +++ b/module/finc/tests/selenium/docker-compose.yaml @@ -0,0 +1,45 @@ +version: "3.7" + +services: + selenium-hub: + image: selenium/hub + container_name: selenium + ports: + - "4442:4442" + - "4443:4443" + - "4444:4444" + extra_hosts: + - "host.docker.internal:10.111.0.1" + chrome: + image: selenium/node-chrome + depends_on: + - selenium-hub + environment: + - SE_EVENT_BUS_HOST=selenium-hub + - SE_EVENT_BUS_PUBLISH_PORT=4442 + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 + firefox: + image: selenium/node-firefox + depends_on: + - selenium-hub + environment: + - SE_EVENT_BUS_HOST=selenium-hub + - SE_EVENT_BUS_PUBLISH_PORT=4442 + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 + + php: + image: php:7.3-fpm + working_dir: /usr/local/vufind + depends_on: + - selenium-hub + #command: ["./vendor/bin/steward run staging firefox"] + volumes: + - ./:/usr/local/vufind + entrypoint: ["php/entrypoint.sh"] + command: ["php-fpm"] + + composer: + image: composer:1.9 + command: ["composer", "install"] + volumes: + - .:/app \ No newline at end of file diff --git a/module/finc/tests/selenium/php.ini b/module/finc/tests/selenium/php.ini new file mode 100755 index 00000000000..a49546fa2db --- /dev/null +++ b/module/finc/tests/selenium/php.ini @@ -0,0 +1,31 @@ +; Copyright (C) 2020 Leipzig University Library +; +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see <http://www.gnu.org/licenses/>. +; +; @author Sebastian Kehr <kehr@ub.uni-leipzig.de> +; @license https://opensource.org/licenses/GPL-3.0 GNU GPLv3 + +; See https://www.php.net/manual/en/function.error-reporting.php for more details. +error_reporting = E_ALL + +; See https://xdebug.org/docs/all_settings for more details. +xdebug.remote_autostart=0 +xdebug.remote_mode=req +xdebug.remote_handler=dbgp +xdebug.remote_connect_back=1 +xdebug.remote_port=9000 +xdebug.remote_enable=1 +short_open_tag=Off; +log_errors = on +error_reporting = 32767 \ No newline at end of file diff --git a/module/finc/tests/selenium/php/Dockerfile b/module/finc/tests/selenium/php/Dockerfile new file mode 100755 index 00000000000..8d87a43e02b --- /dev/null +++ b/module/finc/tests/selenium/php/Dockerfile @@ -0,0 +1,30 @@ +# Copyright (C) 2020 Leipzig University Library +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# @author Sebastian Kehr <kehr@ub.uni-leipzig.de> +# @license https://opensource.org/licenses/GPL-3.0 GNU GPLv3 + +FROM php:7.2-fpm-alpine +RUN apk add --no-cache $PHPIZE_DEPS freetype-dev libxml2-dev icu-dev libxslt-dev \ + && pecl install xdebug-2.9.6 \ + && docker-php-ext-enable xdebug \ + && docker-php-ext-install mysqli \ + && docker-php-ext-install pdo_mysql \ + && docker-php-ext-install gd \ + && docker-php-ext-install soap \ + && docker-php-ext-install intl \ + && docker-php-ext-install dom \ + && docker-php-ext-install xsl +COPY php.ini /usr/local/etc/php/conf.d/php.ini \ No newline at end of file diff --git a/module/finc/tests/selenium/php/entrypoint.sh b/module/finc/tests/selenium/php/entrypoint.sh new file mode 100755 index 00000000000..927b845f7d1 --- /dev/null +++ b/module/finc/tests/selenium/php/entrypoint.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env sh +# Copyright (C) 2020 Leipzig University Library +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# @author Sebastian Kehr <kehr@ub.uni-leipzig.de> +# @license https://opensource.org/licenses/GPL-3.0 GNU GPLv3 + +until ! (ping -c1 env >/dev/null 2>&1) && [ -f ./data/docker/env/php ]; do :; done +set -a; . ./data/docker/env/php; set +a + +: "${UIDGID:=$(stat -c '%u' .):$(stat -c '%g' .)}" +sed -i "s/$(id -u www-data):$(id -g www-data)/$UIDGID/" /etc/passwd +exec docker-php-entrypoint "$@" diff --git a/module/finc/tests/selenium/php/php.ini b/module/finc/tests/selenium/php/php.ini new file mode 100755 index 00000000000..abe39fa7969 --- /dev/null +++ b/module/finc/tests/selenium/php/php.ini @@ -0,0 +1,29 @@ +; Copyright (C) 2020 Leipzig University Library +; +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see <http://www.gnu.org/licenses/>. +; +; @author Sebastian Kehr <kehr@ub.uni-leipzig.de> +; @license https://opensource.org/licenses/GPL-3.0 GNU GPLv3 + +; See https://www.php.net/manual/en/function.error-reporting.php for more details. +error_reporting = E_ALL + +; See https://xdebug.org/docs/all_settings for more details. +xdebug.remote_autostart=0 +xdebug.remote_mode=req +xdebug.remote_handler=dbgp +xdebug.remote_connect_back=1 +xdebug.remote_port=9000 +xdebug.remote_enable=1 +short_open_tag=Off; \ No newline at end of file diff --git a/module/finc/tests/selenium/tests/adlr/AdlrBase.php b/module/finc/tests/selenium/tests/adlr/AdlrBase.php new file mode 100644 index 00000000000..0339ebee0fb --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/AdlrBase.php @@ -0,0 +1,139 @@ +<?php +namespace Selenium\adlr; + +use Facebook\WebDriver\WebDriverBy; +use Facebook\WebDriver\WebDriverExpectedCondition; +use Lmc\Steward\ConfigProvider; +use Lmc\Steward\Test\AbstractTestCase; + +class AdlrBase extends AbstractTestCase +{ + public static $port = ''; + // public static $port = ':81'; + + /** @var string */ + public static $host = 'https://staging.finc.info/vufind2/fid_adlr'; + // public static $baseUrl = 'http://host.docker.internal'; + // public static $baseUrl = 'http://127.0.0.1'; + // public static $baseUrl = 'http://localhost'; + + protected $user = false; + + /** + * @before + */ + public function initBaseUrl() + { + // Set base url according to environment + switch (ConfigProvider::getInstance()->env) { + case 'staging': + self::$host = 'https://staging.finc.info/vufind2/fid_adlr'; + break; + case 'alpha': + self::$host = 'http://host.docker.internal'; + // self::$host = 'https://alpha.finc.info/vufind2/fid_adlr/22589'; + break; + case 'local': + self::$host = 'http://host.docker.internal'; + break; + default: + throw new \RuntimeException(sprintf('Unknown environment "%s"', ConfigProvider::getInstance()->env)); + } + + $this->debug('Environment "%s"', ConfigProvider::getInstance()->env); + $this->debug('Base URL set to "%s"', self::$host); + + if (ConfigProvider::getInstance()->env === 'production') { + $this->warn('The tests are run against production, so be careful!'); + } + } + + protected function runGetItTest($records = [], $rules = []): void + { + foreach ($records as $record) { + $this->log("object id of webdriver: " . spl_object_id($this->wd)); + $this->wd->get(self::$host . self::$port . $record); + $this->wd->takeScreenshot("logs/adlr/info{$record}" . ($this->user ? '-' . $this->user : '') . ".png"); + + foreach ($rules["desc"] ?? [] as $rule) { + if ($rule["waitForClass"]) { + $this->waitForClass($rule["waitForClass"], true); + } + if ($rule["waitForId"]) { + $this->waitForId($rule["waitForId"], true); + } + if ($rule["waitForLinkText"]) { + $this->waitForLinkText($rule["waitForLinkText"], true); + } + if ($rule["wait"]) { + try { + $this->wd->wait(5, 5000)->until( + WebDriverExpectedCondition::elementTextContains( + WebDriverBy::className($rule["wait"]), + $rule["text"] + ) + ); + } catch (\Facebook\WebDriver\Exception\NoSuchElementException $x) { + $this->log("Timeout for $record when fething {$rule["wait"]}."); + } + } + try { + $value = $this->findByCss($rule["path"])->getText(); + } catch (\Facebook\WebDriver\Exception\NoSuchElementException $x) { + $value = false; + } + switch ($rule["type"] ?? '') { + case 'text': + $this->assertEqualsIgnoringCase( + $rule["text"], + $value, + $rule["path"] . ($value === false ? " does not exists" : " is '" . $value . "' ") + . ", but should be '" . $rule["text"] . "'" + ); + break; + case 'contains': + $this->assertStringContainsStringIgnoringCase( + $rule["text"], + $value, + $record . ": " . + $rule["path"] . ($value === false ? " does not exists" : " is '" . $value . "' ") + . ", but should contain '" . $rule["text"] . "'" + ); + break; + case 'anti-exi': + $this->assertNotEqualsIgnoringCase( + $rule["text"], + $value, + $rule["path"] . " must not be equals to '" . $rule["text"] . "'" + ); + break; + } + } + } + } + + #region helper methods + protected function changeLanguage($lang = 'de') + { + $this->wd->get(self::$host . self::$port); + $this->wd->executeScript("document.langForm.mylang.value='" . $lang . "';document.langForm.submit();"); + $this->waitForPartialLinkText('MENÜ'); + } + + protected function setFullsreen() + { + $this->wd->manage()->window()->maximize(); + } + + protected function logout() + { + $this->wd->get(self::$host . self::$port . '/MyResearch/Logout'); + } + + protected function setUp(): void + { + $this->changeLanguage(); + parent::setUp(); + } + #endregion +} diff --git a/module/finc/tests/selenium/tests/adlr/AdlrLoginBase.php b/module/finc/tests/selenium/tests/adlr/AdlrLoginBase.php new file mode 100644 index 00000000000..d087f2de031 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/AdlrLoginBase.php @@ -0,0 +1,16 @@ +<?php +namespace Selenium\adlr; + +abstract class AdlrLoginBase extends AdlrBase implements Login +{ + protected function login($user, $password): bool + { + $this->user = $user; + $this->wd->get(self::$host . self::$port . '/MyResearch/UserLogin'); + $this->findById('login_Authenticator_username')->sendKeys($user); + $this->findById('login_Authenticator_password')->sendKeys($password); + $this->findByName('processLogin')->click(); + $this->waitForClass('myresearch-menu'); + return true; + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit01DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit01DefaultTest.php new file mode 100755 index 00000000000..1f33b8ebf10 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit01DefaultTest.php @@ -0,0 +1,55 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-01 + * @group adlr-getit-default + */ +class Getit01DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/finc-87-14159", + "/Record/finc-88-694", + "/Record/finc-99-1482", + "/Record/finc-101-aHR0cDovL3d3dy5maWxtbXVzaWsudW5pLWtpZWwuZGUvS0IxNC9LQjE0LVZvcndvcnQucGRm", + "/Record/finc-150-10500", + "/Record/finc-153-bWFuLWluLXRoZS1hdHRpYy0xOTUzLXJlc3RvcmVkLW1vdmllLTcyMHAtaGQ", + "/Record/finc-170-12835", + "/Record/191-eunhj", + "/Record/196-1213742994", + "/Record/26-80811", + "/Record/ai-28-d2580a888c2d405983dd08b4cbf24560", + "/Record/finc-30-61040", + "/Record/finc-39-comin118937881985num731329", + "/Record/ai-53-757382", + "/Record/finc-80-6678", + "/Record/84-on1079058527" + ]; + + public const RULES = [ + "test_case_id" => "01", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT" + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE" + ], + [ + "type" => "text", + "path" => ".getitbox-notices", + "text" => "Diese Ressource ist frei verfügbar." + ] + ] + ]; + + public function testGetItDefault01() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit01ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit01ProfessorTest.php new file mode 100755 index 00000000000..bc4d95b2a89 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit01ProfessorTest.php @@ -0,0 +1,19 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-01 + * @group adlr-getit-professor + */ +class Getit01ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor01() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit01DefaultTest::RECORDS, Getit01DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit01StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit01StudentTest.php new file mode 100755 index 00000000000..1687fe9abe6 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit01StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-01 + * @group adlr-getit-student + */ +class Getit01StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent01() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit01DefaultTest::RECORDS, Getit01DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit02DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit02DefaultTest.php new file mode 100755 index 00000000000..7b42486e44f --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit02DefaultTest.php @@ -0,0 +1,56 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-02 + * @group adlr-getit-default + */ +class Getit02DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/ai-49-aHR0cDovL2R4LmRvaS5vcmcvMTAuMTA4MC8xMDMwNDMxMi4yMDIxLjE5ODMyNTQ", + "/Record/ai-49-aHR0cDovL2R4LmRvaS5vcmcvMTAuMTA4MC8xNzQzOTg4NC4yMDIxLjE5MjI0Mzc", + "/Record/ai-55-aHR0cHM6Ly93d3cuanN0b3Iub3JnL3N0YWJsZS8xMC4yOTc5L2JsYWNrY2FtZXJhLjEwLjIuMTk", + "/Record/ai-55-aHR0cHM6Ly93d3cuanN0b3Iub3JnL3N0YWJsZS80MDQwNjAyMQ", + "/Record/ai-68-OLC1936107031", + "/Record/ai-68-OLC1852389117" + ]; + + public const RULES = [ + "test_case_id" => "02", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "NICHT ANGEMELDET", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Weitere Informationen sehen Sie, wenn Sie angemeldet sind.", + "waitForClass" => "openUrlPrint" + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Noch keinen Account?", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Jetzt registrieren", + ] + ] + ]; + + public function testGetItDefault02() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit03DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit03DefaultTest.php new file mode 100755 index 00000000000..2f2df900956 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit03DefaultTest.php @@ -0,0 +1,52 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-03 + * @group adlr-getit-default + */ +class Getit03DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/51-9783864881091", + "/Record/51-9781443890199", + "/Record/51-9783631784259", + ]; + + public const RULES = [ + "test_case_id" => "03", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "NICHT ANGEMELDET", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Diese Neuerscheinung können Sie zur Leihe bestellen, wenn Sie angemeldet sind.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Noch keinen Account?", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Jetzt registrieren", + ] + ] + ]; + + public function testGetItDefault03() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit03ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit03ProfessorTest.php new file mode 100755 index 00000000000..f74cfc57b39 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit03ProfessorTest.php @@ -0,0 +1,57 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-03 + * @group adlr-getit-professor + */ +class Getit03ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public const RECORDS = [ + "/Record/51-9783864881091", + "/Record/51-9781443890199", + "/Record/51-9783631784259", + ]; + + public const RULES = [ + "test_case_id" => "03L", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ], + [ + "type" => "text", + "path" => ".full-order", + "text" => "KOSTENLOS BESTELLEN", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Bestellen Sie ein Leihexemplar dieser Neuerscheinung auf Kosten von adlr.link. Das Buch wird direkt an Sie geschickt.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Verfügbarkeit:", + ], + ], + ]; + + public function testGetItProfessor03() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit03StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit03StudentTest.php new file mode 100755 index 00000000000..790395b527a --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit03StudentTest.php @@ -0,0 +1,18 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr-getit-03 + * @group adlr-getit-student + */ +class Getit03StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent03() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit03ProfessorTest::RECORDS, Getit03ProfessorTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit04DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit04DefaultTest.php new file mode 100755 index 00000000000..cf2fa4454cb --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit04DefaultTest.php @@ -0,0 +1,49 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-04 + * @group adlr-getit-default + */ +class Getit04DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/76-EBC5939400", + "/Record/76-EBC6915648", + "/Record/76-EBC6138849", + ]; + + public const RULES = [ + "test_case_id" => "04", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "NICHT ANGEMELDET", + ], + ["type" => "anti-exi", "path" => "#get-it-button"], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Sie müssen angemeldet sein, um Zugang zu diesem Titel zu erhalten.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Noch keinen Account?", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Jetzt registrieren", + ], + ] + ]; + + public function testGetItDefault04() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit04ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit04ProfessorTest.php new file mode 100755 index 00000000000..f4afe9a83a0 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit04ProfessorTest.php @@ -0,0 +1,47 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-04 + * @group adlr-getit-professor + */ +class Getit04ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public const RECORDS = [ + "/Record/76-EBC5939400", + "/Record/76-EBC6915648", + "/Record/76-EBC6138849", + ]; + + public const RULES = [ + "test_case_id" => "04L", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "text", + "path" => ".getitbox-notices", + "text" => + "Dieses E-Book ist für Sie über eine adlr.link-Lizenz freigeschaltet.", + ], + ], + ]; + + public function testGetItProfessor04() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit04StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit04StudentTest.php new file mode 100755 index 00000000000..0585fd201a1 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit04StudentTest.php @@ -0,0 +1,18 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr-getit-04 + * @group adlr-getit-student + */ +class Getit04StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent04() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit04ProfessorTest::RECORDS, Getit04ProfessorTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit05DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit05DefaultTest.php new file mode 100755 index 00000000000..4a69655b647 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit05DefaultTest.php @@ -0,0 +1,47 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-05 + * @group adlr-getit-default + */ +class Getit05DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/finc-78-39818", + "/Record/finc-78-18524", + "/Record/finc-78-19486", + ]; + + public const RULES = [ + "test_case_id" => "05", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Dieser Titel ist in der IZI-Datenbank des Internationalen Zentralinstituts für das Jugend- und Bildungsfernsehen nachgewiesen.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Zugang zum Volltext erhalten Sie nur bei einigen Titeln dieser Quelle über den obigen Link.", + ], + ] + ]; + + public function testGetItDefault05() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit05ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit05ProfessorTest.php new file mode 100755 index 00000000000..5fdc9779ee5 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit05ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-05 + * @group adlr-getit-professor + */ +class Getit05ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor05() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit05DefaultTest::RECORDS, Getit05DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit05StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit05StudentTest.php new file mode 100755 index 00000000000..ba117f509a4 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit05StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-05 + * @group adlr-getit-student + */ +class Getit05StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent05() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit05DefaultTest::RECORDS, Getit05DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit06DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit06DefaultTest.php new file mode 100755 index 00000000000..8705037ce7a --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit06DefaultTest.php @@ -0,0 +1,48 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-06 + * @group adlr-getit-default + */ +class Getit06DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/finc-103-b2FpOmNkbTE1NzU5LmNvbnRlbnRkbS5vY2xjLm9yZzpwMTU3NTljb2xsOS8xMTgwNA", + "/Record/finc-103-b2FpOmNkbTE1NzU5LmNvbnRlbnRkbS5vY2xjLm9yZzpwMTU3NTljb2xsNy8xMDg", + "/Record/finc-103-b2FpOmNkbTE1NzU5LmNvbnRlbnRkbS5vY2xjLm9yZzpwMTU3NTljb2xsOS8xMTkyNw", + ]; + + public const RULES = [ + "test_case_id" => "06", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Diese Ressource ist frei verfügbar.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Dieser Titel ist im Bestand der Margaret Herrick Library, Academy of Motion Picture Arts and Sciences, und wird mit freundlicher Genehmigung hier angezeigt.", + ], + ] + ]; + + public function testGetItDefault06() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit06ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit06ProfessorTest.php new file mode 100755 index 00000000000..60b80b6a3e2 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit06ProfessorTest.php @@ -0,0 +1,24 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-06 + * @group adlr-getit-professor + */ +class Getit06ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + /** + * @group adlr + */ + public function testGetItProfessor06() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit06DefaultTest::RECORDS, Getit06DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit06StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit06StudentTest.php new file mode 100755 index 00000000000..3d6bdfb563c --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit06StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-06 + * @group adlr-getit-student + */ +class Getit06StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent06() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit06DefaultTest::RECORDS, Getit06DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit07DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit07DefaultTest.php new file mode 100755 index 00000000000..122e5531121 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit07DefaultTest.php @@ -0,0 +1,48 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-07 + * @group adlr-getit-default + */ +class Getit07DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/dswarm-126-ZnR1bml2a2Fuc2FzOm9haTprdXNjaG9sYXJ3b3Jrcy5rdS5lZHU6MTgwOC8zMTgwNg", + "/Record/dswarm-126-ZnR1bmlhYXJodXNwdWJsOm9haTpwdXJlLmF0aXJhLmRrOnB1YmxpY2F0aW9ucy8wYzQ4NTgzNi0zOWU3LTRmNjMtOGViMi0wYmZjMDE1ZjJkMmQ" + ]; + + public const RULES = [ + "test_case_id" => "07", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Dieser Titel stammt aus der Bielefeld Academic Search Engine.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Einige Dokumente aus dieser Quelle sind möglicherweise nicht als Volltext zugänglich.", + ], + ] + ]; + + public function testGetItDefault07() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit07ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit07ProfessorTest.php new file mode 100755 index 00000000000..825a0cce51a --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit07ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-07 + * @group adlr-getit-professor + */ +class Getit07ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor07() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit07DefaultTest::RECORDS, Getit07DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit07StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit07StudentTest.php new file mode 100755 index 00000000000..a32f05c11aa --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit07StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-07 + * @group adlr-getit-student + */ +class Getit07StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent07() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit07DefaultTest::RECORDS, Getit07DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit08DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit08DefaultTest.php new file mode 100755 index 00000000000..51190d5b050 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit08DefaultTest.php @@ -0,0 +1,48 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-08 + * @group adlr-getit-default + */ +class Getit08DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/finc-169-QVJEQVJEIEtsYXNzaVdpbGxpYW1zIMK3IEhhcnJ5IFBvdGVyIMK3IE5pYyBSYWluZSDCtyBXRFIwMDowNToxMDYxMTY0NjkzMDI1Nw", + "/Record/finc-169-WkRGS3VsdHVyemVpdE1pbG8gUmF1IMO8YmVyICJEYXMgTnMgTmV1ZSBFdmFuZ2VsaXVtIiAtMDA6MDU6NTkxMDMxNTk5NDk5MjAw" + ]; + + public const RULES = [ + "test_case_id" => "08", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Aus Deutschland freier Zugang zu oder Download von Mediathek-Videos möglich.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Der Zugang kann aus rechtlichen Gründen nach Ablauf eines bestimmten Zeitraums oder aus anderen Ländern gesperrt sein.", + ], + ], + ]; + + public function testGetItDefault08() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit08ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit08ProfessorTest.php new file mode 100755 index 00000000000..63472008367 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit08ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-08 + * @group adlr-getit-professor + */ +class Getit08ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor08() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit08DefaultTest::RECORDS, Getit08DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit08StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit08StudentTest.php new file mode 100755 index 00000000000..6ca4a330a2e --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit08StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-08 + * @group adlr-getit-student + */ +class Getit08StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent08() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit08DefaultTest::RECORDS, Getit08DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit09DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit09DefaultTest.php new file mode 100755 index 00000000000..1a6a6d866c4 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit09DefaultTest.php @@ -0,0 +1,41 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-09 + * @group adlr-getit-default + */ +class Getit09DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-1049705947", + "/Record/0-1042440905" + ]; + + public const RULES = [ + "test_case_id" => "09", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "text", + "path" => ".getitbox-notices", + "text" => "Diese Ressource ist frei verfügbar.", + ] + ] + ]; + + public function testGetItDefault09() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit09ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit09ProfessorTest.php new file mode 100755 index 00000000000..203acde53c7 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit09ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-09 + * @group adlr-getit-professor + */ +class Getit09ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor09() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit09DefaultTest::RECORDS, Getit09DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit09StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit09StudentTest.php new file mode 100755 index 00000000000..7c718d10f8b --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit09StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-09 + * @group adlr-getit-student + */ +class Getit09StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent09() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit09DefaultTest::RECORDS, Getit09DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit10DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit10DefaultTest.php new file mode 100755 index 00000000000..a30d4b548c5 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit10DefaultTest.php @@ -0,0 +1,48 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-10 + * @group adlr-getit-default + */ +class Getit10DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-1039949797", + "/Record/0-1656224038" + ]; + + public const RULES = [ + "test_case_id" => "10", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "NICHT ANGEMELDET", + ], + ["type" => "anti-exi", "path" => "#get-it-button"], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Sie müssen angemeldet sein, um Zugang zu diesem Titel zu erhalten.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Noch keinen Account?", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Jetzt registrieren", + ], + ] + ]; + + public function testGetItDefault10() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit10ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit10ProfessorTest.php new file mode 100755 index 00000000000..236b847a728 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit10ProfessorTest.php @@ -0,0 +1,43 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-10 + * @group adlr-getit-professor + */ +class Getit10ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public const RULES = [ + "test_case_id" => "10", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "text", + "path" => ".getitbox-notices", + "text" => + "Dieses E-Book ist für Sie über eine adlr.link-Lizenz freigeschaltet.", + ], + ] + ]; + + public function testGetItProfessor10() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit10DefaultTest::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit10StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit10StudentTest.php new file mode 100755 index 00000000000..d03afd49c3b --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit10StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-10 + * @group adlr-getit-student + */ +class Getit10StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent10() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit10DefaultTest::RECORDS, Getit10ProfessorTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit11DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit11DefaultTest.php new file mode 100755 index 00000000000..e4a677d4af4 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit11DefaultTest.php @@ -0,0 +1,49 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-11 + * @group adlr-getit-default + */ +class Getit11DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/127-HF000229647", // ok, if logged in + "/Record/finc-148-000766970", // ok, if logged in + "/Record/finc-109-KM000085902", // error: mehrbändiges Werk + "/Record/0-1678979260", // error: Links zur Ressource + "/Record/0-1668331306", // error: derzeit leider keine Infos + "/Record/0-1667284800", // error: derzeit leider keine Infos + "/Record/finc-117-BV040630682", // error: mehrbändiges Werk + "/Record/finc-142-08034201", // error: mehrbändiges Werk + "/Record/finc-119-321520181" // error: mehrbändiges Werk + ]; + + public const RULES = [ + "test_case_id" => "11", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ], + [ + "type" => "text", + "path" => ".getitbox-notices", + "text" => + 'Dieser Titel ist ein mehrbändiges Werk. Einzeltitel sind unter "Zugehörige Bände" aufgeführt.', + ], + ] + ]; + + public function testGetItDefault11() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit11ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit11ProfessorTest.php new file mode 100755 index 00000000000..6041ec06838 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit11ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-11 + * @group adlr-getit-professor + */ +class Getit11ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor11() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit11DefaultTest::RECORDS, Getit11DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit11StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit11StudentTest.php new file mode 100755 index 00000000000..9e33fcba651 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit11StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-11 + * @group adlr-getit-student + */ +class Getit11StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent11() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit11DefaultTest::RECORDS, Getit11DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit12DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit12DefaultTest.php new file mode 100755 index 00000000000..11d301ce5ae --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit12DefaultTest.php @@ -0,0 +1,57 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-12 + * @group adlr-getit-default + */ +class Getit12DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-1603202374", + "/Record/0-1067543112", + "/Record/0-1027717349", + ]; + + public const RULES = [ + "test_case_id" => "12", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "NICHT ANGEMELDET", + ], + [ + "type" => "anti-exi", + "path" => ".full-order", + "text" => "KOSTENLOS BESTELLEN", + ], + [ + "type" => "anti-exi", + "path" => ".part-order", + "text" => "TEILKOPIE BESORGEN", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Weitere Informationen sehen Sie, wenn Sie angemeldet sind.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Noch keinen Account?", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Jetzt registrieren", + ], + ] + ]; + + public function testGetItDefault12() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit12ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit12ProfessorTest.php new file mode 100755 index 00000000000..774780f3574 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit12ProfessorTest.php @@ -0,0 +1,49 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-12 + * @group adlr-getit-professor + */ +class Getit12ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public const RULES = [ + "test_case_id" => "12", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => ".full-order", + "text" => "KOSTENLOS BESTELLEN", + ], + [ + "type" => "text", + "path" => ".part-order", + "text" => "TEILKOPIE BESORGEN", + ], + /* should there be infos? + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + "waitForId" => "get-it-button" + ], + */ + ] + ]; + + public function testGetItProfessor12() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit12DefaultTest::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit12StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit12StudentTest.php new file mode 100755 index 00000000000..42c4a307122 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit12StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-12 + * @group adlr-getit-student + */ +class Getit12StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent12() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit12DefaultTest::RECORDS, Getit12ProfessorTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit13DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit13DefaultTest.php new file mode 100755 index 00000000000..8b1970813dd --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit13DefaultTest.php @@ -0,0 +1,63 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-13 + * @group adlr-getit-default + */ +class Getit13DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/finc-109-KM000089451", + "/Record/finc-117-BV043403677", + "/Record/finc-119-365350478", + "/Record/127-HF000221927", + "/Record/finc-148-000759109", + /* https://projekte.ub.uni-leipzig.de/issues/22013#note-26 */ + /*"/Record/finc-142-11205879",*/ + /*"/Record/finc-151-000055718",*/ + "/Record/0-1667395157" // error: "GET IT" instead of "Nicht angemeldet" + ]; + + public const RULES = [ + "test_case_id" => "13", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "NICHT ANGEMELDET", + ], + [ + "type" => "anti-exi", + "path" => ".part-order", + "text" => "TEILKOPIE BESORGEN", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Weitere Informationen sehen Sie, wenn Sie angemeldet sind.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Noch keinen Account?", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Jetzt registrieren", + ], + ] + ]; + + public function testGetItDefault13() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit13ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit13ProfessorTest.php new file mode 100755 index 00000000000..5f81fedb964 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit13ProfessorTest.php @@ -0,0 +1,45 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-13 + * @group adlr-getit-professor + */ +class Getit13ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public const RULES = [ + "test_case_id" => "13L", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => ".part-order", + "text" => "TEILKOPIE BESORGEN", + ], + /* see https://projekte.ub.uni-leipzig.de/issues/22013#note-26 */ + /* + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ], + */ + ] + ]; + + public function testGetItProfessor13() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit13DefaultTest::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit13StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit13StudentTest.php new file mode 100755 index 00000000000..de34801c87c --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit13StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-13 + * @group adlr-getit-student + */ +class Getit13StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent13() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit13DefaultTest::RECORDS, Getit13ProfessorTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit14DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit14DefaultTest.php new file mode 100755 index 00000000000..6beb75904ab --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit14DefaultTest.php @@ -0,0 +1,63 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-14 + * @group adlr-getit-default + */ +class Getit14DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-1670477886", + "/Record/0-1041254903", + "/Record/finc-109-KM000088077", + "/Record/finc-119-369836529", + "/Record/finc-119-321710606", + "/Record/finc-119-310607205", + "/Record/127-HF000223270", + "/Record/finc-142-08035064", + "/Record/finc-151-000055678", + "/Record/finc-148-000632095", // error: mehrbändiges Werk statt 'weitere informationen sehen sie..' + "/Record/finc-117-BV045542005", // error: 'GET IT' statt 'NICHT ANGEMELDET' + "/Record/finc-119-36435657X", // error: mehrbändiges Werk statt 'weitere informationen sehen sie..' + ]; + + public const RULES = [ + "test_case_id" => "14", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "NICHT ANGEMELDET", + ], + /* https://projekte.ub.uni-leipzig.de/issues/22013#note-26 + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ],*/ + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Weitere Informationen sehen Sie, wenn Sie angemeldet sind.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Noch keinen Account?", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Jetzt registrieren", + ] + ] + ]; + + public function testGetItDefault14() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit14ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit14ProfessorTest.php new file mode 100755 index 00000000000..53667dc1e48 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit14ProfessorTest.php @@ -0,0 +1,44 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-14 + * @group adlr-getit-professor + */ +class Getit14ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public const RULES = [ + "test_case_id" => "14L", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + // https://projekte.ub.uni-leipzig.de/issues/22013#note-26 +/* [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ],*/ + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Einige Medientypen (wie z. B. Manuskripte, Schallplatten, CDs, Videos) können von der Fernleihe ausgeschlossen sein.", + ], + ] + ]; + + public function testGetItProfessor14() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit14DefaultTest::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit14StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit14StudentTest.php new file mode 100755 index 00000000000..537da44746c --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit14StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-14 + * @group adlr-getit-student + */ +class Getit14StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent14() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit14DefaultTest::RECORDS, Getit14ProfessorTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit15DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit15DefaultTest.php new file mode 100755 index 00000000000..3f80918e20a --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit15DefaultTest.php @@ -0,0 +1,58 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-15 + * @group adlr-getit-default + */ +class Getit15DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-1649918879", + "/Record/0-1668116529", + "/Record/finc-119-326140743", + "/Record/finc-119-320535185", + "/Record/finc-119-218381344", + "/Record/127-HF000220674", + "/Record/127-HF000224330", + "/Record/finc-142-10903814", + "/Record/finc-142-10891532", + "/Record/finc-151-000046616", + "/Record/finc-117-BV022883157", + ]; + + public const RULES = [ + "test_case_id" => "15", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + // https://projekte.ub.uni-leipzig.de/issues/22013#note-26 +/* [ + "type" => "text", + "path" => "#get-it-button", + "text" => "INFOS ZUR RESSOURCE", + ],*/ + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Für diesen Titel können wir derzeit leider keine weiteren Informationen zur Verfügbarkeit bereitstellen.", + "wait" => "getitbox-notices" + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => "Ob der Titel per Fernleihe bestellbar ist, kann Ihnen Ihre Heimatbibliothek mitteilen.", + "wait" => "getitbox-notices" + ], + ] + ]; + + public function testGetItDefault15() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit15ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit15ProfessorTest.php new file mode 100755 index 00000000000..ef1c12e40ba --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit15ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-15 + * @group adlr-getit-professor + */ +class Getit15ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor15() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit15DefaultTest::RECORDS, Getit15DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit15StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit15StudentTest.php new file mode 100755 index 00000000000..85d7cdfc6cb --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit15StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-15 + * @group adlr-getit-student + */ +class Getit15StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent15() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit15DefaultTest::RECORDS, Getit15DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit16DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit16DefaultTest.php new file mode 100755 index 00000000000..cf5f2877909 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit16DefaultTest.php @@ -0,0 +1,47 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-16 + * @group adlr-getit-default + */ +class Getit16DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-1678956775", + "/Record/0-1678647268", + "/Record/0-1678675431", + "/Record/finc-117-BV045203253", + "/Record/finc-117-BV044707116", + "/Record/finc-119-339980966", + "/Record/finc-119-356913473", + "/Record/finc-119-22918670X", + ]; + + public const RULES = [ + "test_case_id" => "16", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "text", + "path" => ".getitbox-notices", + "text" => "Diese Ressource ist frei verfügbar.", + ], + ] + ]; + + public function testGetItDefault16() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit16ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit16ProfessorTest.php new file mode 100755 index 00000000000..721e8759f53 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit16ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-16 + * @group adlr-getit-professor + */ +class Getit16ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor16() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit16DefaultTest::RECORDS, Getit16DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit16StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit16StudentTest.php new file mode 100755 index 00000000000..8d74356e6b1 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit16StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-16 + * @group adlr-getit-student + */ +class Getit16StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent16() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit16DefaultTest::RECORDS, Getit16DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit17DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit17DefaultTest.php new file mode 100755 index 00000000000..e6e6e97923e --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit17DefaultTest.php @@ -0,0 +1,54 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-17 + * @group adlr-getit-default + */ +class Getit17DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-1679317865", + "/Record/0-1678682802", + "/Record/finc-117-BV044276094", + "/Record/finc-117-BV045304712", + "/Record/finc-119-371587344", + "/Record/finc-119-377835137", + "/Record/127-HF000224597", + "/Record/127-HF000219912", + ]; + + public const RULES = [ + "test_case_id" => "17", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Dieses E-Book ist nur mit einer Lizenz Ihrer Heimatbibliothek nutzbar. Wenn es als bei Ihrer Bibliothek vorhanden angezeigt wird, dann sollte der direkte Zugang über den obigen Link möglich sein.", + ], + [ + "type" => "contains", + "path" => ".getitbox-notices", + "text" => + "Teilkopien sind bei E-Books nicht möglich. Wenn Sie eine Teilkopie benötigen, suchen Sie bitte in unserem Portal nach der Printausgabe dieses Werkes.", + ], + ] + ]; + + public function testGetItDefault17() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit17ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit17ProfessorTest.php new file mode 100755 index 00000000000..8a0166bc839 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit17ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-17 + * @group adlr-getit-professor + */ +class Getit17ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor17() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit17DefaultTest::RECORDS, Getit17DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit17StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit17StudentTest.php new file mode 100755 index 00000000000..14af504527c --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit17StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-17 + * @group adlr-getit-student + */ +class Getit17StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent17() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit17DefaultTest::RECORDS, Getit17DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit18DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit18DefaultTest.php new file mode 100755 index 00000000000..3e615e1946b --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit18DefaultTest.php @@ -0,0 +1,48 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-18 + * @group adlr-getit-default + */ +class Getit18DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-1666903302", + "/Record/0-1588294307", + "/Record/0-1040676065", + "/Record/0-1667282492", + "/Record/0-1667362062", + "/Record/finc-117-BV022365028", + "/Record/finc-119-334239729", + "/Record/127-HF000224884", + "/Record/127-HF000224896", + ]; + + public const RULES = [ + "test_case_id" => "18", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], +/* [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ],*/ + [ + "type" => "text", + "path" => ".getitbox-notices", + "text" => "Online-Ressourcen können Lizenzen erfordern oder kostenpflichtig sein.", + ], + ] + ]; + + public function testGetItDefault18() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit18ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit18ProfessorTest.php new file mode 100755 index 00000000000..2273c316460 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit18ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-18 + * @group adlr-getit-professor + */ +class Getit18ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor18() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit18DefaultTest::RECORDS, Getit18DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit18StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit18StudentTest.php new file mode 100755 index 00000000000..3391a54b8fb --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit18StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-18 + * @group adlr-getit-student + */ +class Getit18StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent18() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit18DefaultTest::RECORDS, Getit18DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit19DefaultTest.php b/module/finc/tests/selenium/tests/adlr/Getit19DefaultTest.php new file mode 100755 index 00000000000..78f549ee0c5 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit19DefaultTest.php @@ -0,0 +1,41 @@ +<?php +namespace Selenium\adlr; + +/** + * @group adlr + * @group adlr-getit-19 + * @group adlr-getit-default + */ +class Getit19DefaultTest extends AdlrBase +{ + public const RECORDS = [ + "/Record/0-478507879" + ]; + + public const RULES = [ + "test_case_id" => "19", + "desc" => [ + [ + "type" => "text", + "path" => ".getitbox-getit > h4", + "text" => "GET IT", + ], + [ + "type" => "text", + "path" => "#get-it-button", + "text" => "LINKS ZUR RESSOURCE", + ], + [ + "type" => "text", + "path" => ".getitbox-notices", + "text" => + "Online-Ressourcen können Lizenzen erfordern oder kostenpflichtig sein.", + ], + ] + ]; + + public function testGetItDefault19() + { + $this->runGetItTest(self::RECORDS, self::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit19ProfessorTest.php b/module/finc/tests/selenium/tests/adlr/Getit19ProfessorTest.php new file mode 100755 index 00000000000..95b447e8875 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit19ProfessorTest.php @@ -0,0 +1,21 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr + * @group adlr-getit-19 + * @group adlr-getit-professor + */ +class Getit19ProfessorTest extends AdlrLoginBase +{ + use ProfessorTrait; + + public function testGetItProfessor19() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit19DefaultTest::RECORDS, Getit19DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Getit19StudentTest.php b/module/finc/tests/selenium/tests/adlr/Getit19StudentTest.php new file mode 100755 index 00000000000..168df226ca3 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Getit19StudentTest.php @@ -0,0 +1,20 @@ +<?php +namespace Selenium\adlr; + +use Lmc\Steward\Test\AbstractTestCase; + +/** + * @group adlr-getit-19 + * @group adlr-getit-professor + */ +class Getit19StudentTest extends AdlrLoginBase +{ + use StudentTrait; + + public function testGetItStudent19() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runGetItTest(Getit19DefaultTest::RECORDS, Getit19DefaultTest::RULES); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/LibrarianTrait.php b/module/finc/tests/selenium/tests/adlr/LibrarianTrait.php new file mode 100644 index 00000000000..0290a8bb5c0 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/LibrarianTrait.php @@ -0,0 +1,14 @@ +<?php +namespace Selenium\adlr; +trait LibrarianTrait +{ + public function getUserName() + { + return 'librarian'; + } + + public function getPassword() + { + return 'test123$'; + } +} diff --git a/module/finc/tests/selenium/tests/adlr/Login.php b/module/finc/tests/selenium/tests/adlr/Login.php new file mode 100644 index 00000000000..327aef76e55 --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/Login.php @@ -0,0 +1,7 @@ +<?php +namespace Selenium\adlr; +interface Login +{ + public function getUserName(); + public function getPassword(); +} \ No newline at end of file diff --git a/module/finc/tests/selenium/tests/adlr/OrderTest.php b/module/finc/tests/selenium/tests/adlr/OrderTest.php new file mode 100755 index 00000000000..65e01e5081e --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/OrderTest.php @@ -0,0 +1,85 @@ +<?php +namespace Selenium\adlr; + +use Facebook\WebDriver\WebDriverBy; +use Facebook\WebDriver\WebDriverCheckboxes; +use Facebook\WebDriver\WebDriverExpectedCondition; +use Facebook\WebDriver\WebDriverSelect; + +/** + * @group adlr + * @group adlr-order + */ +class OrderTest extends AdlrLoginBase +{ + use LibrarianTrait; + + public function testCreateOrderByUser() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runCreateOrderByUser(); + $this->logout(); + } + + public function testDeleteOrder() + { + $this->runDeleteOrder(); + } + + protected function runCreateOrderByUser() + { + $this->log("Login as {$this->getUserName()} and create order."); + $this->findById('account-icon')->click(); + $this->log("Show account of user."); + + $this->log("Create order for partial copy."); + $this->wd->get(self::$host . self::$port . '/Record/127-HF000189856'); + $this->findByXpath("//a[contains(@href,'/fidSubitoPartialCopy')]")->click(); + $this->waitForName('pages'); + // TODO: try some invalid inputs + $this->findByName('pages')->sendKeys('3-4'); + $this->findByName('comment')->sendKeys('Harry Potter sucks.'); + $this->wd->takeScreenshot("logs/adlr/orders/{$this->getUserName()}_create_order_form.png"); + $this->findByName('fid-acquisition-form')->submit(); + $this->wd->wait(10, 1000)->until( + WebDriverExpectedCondition::elementTextContains( + WebDriverBy::className('alert-success'), + 'Ihre Bestellung wurde entgegengenommen und wird nun von uns bearbeitet.' + ) + ); + $this->wd->takeScreenshot("logs/adlr/orders/{$this->getUserName()}_create_order_success.png"); + $this->wd->get(self::$host . self::$port . '/MyResearch/Home'); + + $this->log("Go to user orders."); + $this->findByXpath("//a[contains(@href,'/fid/user/order')]")->click(); + $this->wd->takeScreenshot("logs/adlr/orders/{$this->getUserName()}_create_order_pages.png"); + $this->assertNotEmpty($this->findByXpath("//a[contains(@href,'/Record/127-HF000189856')]")->getText()); + $this->logout(); + } + + protected function runDeleteOrder() + { + $this->logout(); + $this->log("Delete last order of user {$this->getUserName()} by admin."); + $this->wd->manage()->window()->fullscreen(); + $this->login("admin@adlr.link", 'test123$'); + $this->findById('account-icon')->click(); + $this->findByXpath("//a[contains(@href,'/fid/admin/orders')]")->click(); + $lastOrderTitle = $this->findByXpath( + "//*[@id='content']/table/tbody/tr[2]/td[4]/a" + )->getText(); + $this->assertContains("Harry Potter", $lastOrderTitle); + $this->wd->takeScreenshot("logs/adlr/orders/{$this->getUserName()}_create_order_delete.png"); + $this->findByXpath("//*[@id='content']/table/tbody/tr[2]/td[5]/a")->click(); // TODO use unique selector + $this->findByXpath("//*[@id='orderDeleteModal']/div/div/div[3]/a")->click(); // TODO use unique selector + $this->wd->wait(10, 1000)->until( + WebDriverExpectedCondition::elementTextContains( + WebDriverBy::className('alert-success'), + 'Bestellung gelöscht' + ) + ); + $this->wd->takeScreenshot("logs/adlr/orders/{$this->getUserName()}_create_order_delete_success.png"); + $this->logout(); + } +} diff --git a/module/finc/tests/selenium/tests/adlr/ProfessorTrait.php b/module/finc/tests/selenium/tests/adlr/ProfessorTrait.php new file mode 100644 index 00000000000..4b62b4cc97f --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/ProfessorTrait.php @@ -0,0 +1,14 @@ +<?php +namespace Selenium\adlr; +trait ProfessorTrait +{ + public function getUserName() + { + return 'professor'; + } + + public function getPassword() + { + return 'test123$'; + } +} diff --git a/module/finc/tests/selenium/tests/adlr/StudentTrait.php b/module/finc/tests/selenium/tests/adlr/StudentTrait.php new file mode 100644 index 00000000000..cdfaeeda6ff --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/StudentTrait.php @@ -0,0 +1,14 @@ +<?php +namespace Selenium\adlr; +trait StudentTrait +{ + public function getUserName() + { + return 'student'; + } + + public function getPassword() + { + return 'test123$'; + } +} diff --git a/module/finc/tests/selenium/tests/adlr/UserDeleteTest.php b/module/finc/tests/selenium/tests/adlr/UserDeleteTest.php new file mode 100755 index 00000000000..20a6bb19a0e --- /dev/null +++ b/module/finc/tests/selenium/tests/adlr/UserDeleteTest.php @@ -0,0 +1,97 @@ +<?php +namespace Selenium\adlr; + +use Facebook\WebDriver\WebDriverBy; +use Facebook\WebDriver\WebDriverCheckboxes; +use Facebook\WebDriver\WebDriverExpectedCondition; +use Facebook\WebDriver\WebDriverSelect; + +/** + * @group adlr + * @group adlr-delete + * @group adlr-delete-librarian + */ +class UserDeleteTest extends AdlrLoginBase +{ + use LibrarianTrait; + + public function testDeleteByUser() + { + $this->logout(); + $this->assertTrue($this->login("{$this->getUserName()}@adlr.link", $this->getPassword())); + $this->runDeleteByUserTest(); + $this->logout(); + } + + public function testReactivateUser() + { + $this->runReactivateUser(); + } + + protected function runDeleteByUserTest() + { + $this->log("Login as {$this->getUserName()} and mark own account for delete."); + $this->wd->get(self::$host . self::$port); + $this->findById('account-icon')->click(); + $this->log("Show account of user."); + + $this->log("Go to user delete form."); + $this->findByXpath("//a[contains(@href,'/fid/user/delete')]")->click(); + $this->waitForName('passwordConfirmation'); + $this->findByName('passwordConfirmation')->sendKeys($this->getPassword()); + $this->wd->takeScreenshot("logs/adlr/user/delete/{$this->getUserName()}_1_deletes_account.png"); + $this->findByName('submit')->click(); + $this->wd->wait(10, 1000)->until( + WebDriverExpectedCondition::elementTextContains( + WebDriverBy::cssSelector('.modal-body > h1'), + 'Konto gesperrt und zur Löschung vorgemerkt.' + ) + ); + $this->wd->takeScreenshot("logs/adlr/user/delete/{$this->getUserName()}_2_account_delete_success.png"); + $this->logout(); + + $this->log("Try to log in again - should fail..."); + $this->wd->get(self::$host . self::$port . '/MyResearch/UserLogin'); + $this->findById('login_Authenticator_username')->sendKeys($this->getUserName() . "@adlr.link"); + $this->findById('login_Authenticator_password')->sendKeys($this->getPassword()); + $this->findByName('loginForm')->submit(); + $this->wd->wait(10, 1000)->until( + WebDriverExpectedCondition::elementTextContains( + WebDriverBy::className('alert-danger'), + 'Ihr Konto ist zur Löschung vorgemerkt und Ihre Daten werden beim nächsten Wartungslauf endgültig entfernt.' + ) + ); + $this->wd->takeScreenshot("logs/adlr/user/delete/{$this->getUserName()}_3_account_blocked.png"); + } + + protected function runReactivateUser() + { + $this->log("Reactivate account of user {$this->getUserName()} by admin."); + $this->wd->manage()->window()->fullscreen(); + $this->login("admin@adlr.link", 'test123$'); + $this->findById('account-icon')->click(); + $this->wd->get(self::$host . self::$port . '/fid/admin/list'); + $userId = $this->findByXpath( + "//tr/td[text()='{$this->getUserName()}@adlr.link']//preceding-sibling::th" + )->getText(); + $this->log("Found userID $userId"); + $this->wd->get(self::$host . self::$port . '/fid/admin/edit/' . $userId); + $selectElement = $this->wd->findElement(WebDriverBy::name('permissions[basic_access]')); + $select = new WebDriverSelect($selectElement); + $select->selectByValue('granted'); + $deleteElement = $this->findById('deleted'); + $delete = new WebDriverCheckboxes($deleteElement); + $delete->deselectAll(); + $this->wd->takeScreenshot("logs/adlr/user/delete/{$this->getUserName()}_4_reactivate_account.png"); + $this->wd->executeScript('window.scrollBy(0,document.body.scrollHeight);'); + $this->findByName('submit')->click(); + $this->wd->wait(10, 1000)->until( + WebDriverExpectedCondition::elementTextContains( + WebDriverBy::className('alert-info'), + 'Ihr Profil wurde erfolgreich aktualisiert.' + ) + ); + $this->wd->takeScreenshot("logs/adlr/user/delete/{$this->getUserName()}_5_account_active_info.png"); + $this->logout(); + } +} diff --git a/module/finc/tests/selenium/tests/de_15/AccountTest.php b/module/finc/tests/selenium/tests/de_15/AccountTest.php new file mode 100644 index 00000000000..202a22fd98e --- /dev/null +++ b/module/finc/tests/selenium/tests/de_15/AccountTest.php @@ -0,0 +1,54 @@ +<?php +namespace Selenium\de_15; + +use Lmc\Steward\ConfigProvider; +use Selenium\finc\FincBase; + +/** + * @group de_15 + */ +class AccountTest extends FincBase +{ + /** + * @before + */ + public function initBaseUrl() + { + // Set base url according to environment + switch (ConfigProvider::getInstance()->env) { + case 'staging': + self::$host = 'https://staging.finc.info/vufind2/de_15'; + break; + case 'alpha': + self::$host = 'https://alpha.finc.info/vufind2/de_15/22797'; + break; + case 'local': + self::$host = 'http://host.docker.internal'; + break; + default: + throw new \RuntimeException(sprintf('Unknown environment "%s"', ConfigProvider::getInstance()->env)); + } + + $this->debug('Base URL set to "%s"', self::$host); + + if (ConfigProvider::getInstance()->env === 'production') { + $this->warn('The tests are run against production, so be careful!'); + } + } + + /** + * @group de_15 + */ + public function testChangeProfile() + { + $this->runTestChangeProfile('0015TV000003', 'test123$'); + } + + #region helper methods + protected function changeLanguage($lang = 'de') + { + $this->wd->get(self::$host . self::$port); + $this->wd->executeScript("document.langForm.mylang.value='" . $lang . "';document.langForm.submit();"); + $this->waitForPartialLinkText('Katalogsuche'); + } +} diff --git a/module/finc/tests/selenium/tests/de_zwi2/AccountTest.php b/module/finc/tests/selenium/tests/de_zwi2/AccountTest.php new file mode 100644 index 00000000000..d61a703334d --- /dev/null +++ b/module/finc/tests/selenium/tests/de_zwi2/AccountTest.php @@ -0,0 +1,54 @@ +<?php +namespace Selenium\de_zwi2; + +use Lmc\Steward\ConfigProvider; +use Selenium\finc\FincBase; + +/** + * @group de_zwi2 + */ +class AccountTest extends FincBase +{ + protected $user = false; + + /** + * @before + */ + public function initBaseUrl() + { + // Set base url according to environment + switch (ConfigProvider::getInstance()->env) { + case 'staging': + self::$host = 'https://staging.finc.info/vufind2/de_zwi2'; + break; + case 'alpha': + self::$host = 'https://alpha.finc.info/vufind2/de_zwi2/22801'; + break; + case 'local': + self::$host = 'http://host.docker.internal'; + break; + default: + throw new \RuntimeException(sprintf('Unknown environment "%s"', ConfigProvider::getInstance()->env)); + } + + $this->debug('Base URL set to "%s"', self::$host); + + if (ConfigProvider::getInstance()->env === 'production') { + $this->warn('The tests are run against production, so be careful!'); + } + } + + #region helper methods + protected function changeLanguage($lang = 'de') + { + $this->wd->get(self::$host . self::$port); + $this->wd->executeScript("document.langForm.mylang.value='" . $lang . "';document.langForm.submit();"); + $this->waitForPartialLinkText('Mein Konto'); + } + + public function testChangeProfile() + { + $this->runTestChangeProfile('019300', '11111911'); + } + #endregion +} diff --git a/module/finc/tests/selenium/tests/finc/FincBase.php b/module/finc/tests/selenium/tests/finc/FincBase.php new file mode 100644 index 00000000000..96047cad735 --- /dev/null +++ b/module/finc/tests/selenium/tests/finc/FincBase.php @@ -0,0 +1,102 @@ +<?php +namespace Selenium\finc; + +use Lmc\Steward\ConfigProvider; +use Lmc\Steward\Test\AbstractTestCase; + +class FincBase extends AbstractTestCase +{ + public static $port = ''; + public static $host = 'https://staging.finc.info/vufind2/de_zwi2'; + + protected $user = false; + + /** + * @before + */ + public function initBaseUrl() + { + // Set base url according to environment + switch (ConfigProvider::getInstance()->env) { + case 'staging': + self::$host = 'https://staging.finc.info/vufind2/local'; + break; + case 'local': + self::$host = 'http://host.docker.internal'; + break; + default: + throw new \RuntimeException(sprintf('Unknown environment "%s"', ConfigProvider::getInstance()->env)); + } + + $this->debug('Base URL set to "%s"', self::$host); + + if (ConfigProvider::getInstance()->env === 'production') { + $this->warn('The tests are run against production, so be careful!'); + } + } + + protected function runTestChangeProfile($user, $password) + { + $this->wd->get(self::$host . self::$port); + $this->logout(); + $this->changeLanguage(); + $this->user = $user; + $this->login("$this->user", $password); + $this->findByXpath('//*[@id="content"]/div[1]/a')->click(); + $this->waitForName('accountForm'); + $inputFirstname = $this->findById('firstname'); + $oldFirstname = $inputFirstname->getAttribute('value'); + $this->log("Old Vorname: $oldFirstname"); + // $this->wd->takeScreenshot('logs/old.png'); + $inputFirstname->clear(); + $newFirstname = time(); + $inputFirstname->sendKeys($newFirstname); + // $this->wd->takeScreenshot('logs/change.png'); + $this->findById('submitAccount')->click(); + $this->waitForClass('alert-success'); + // $this->wd->takeScreenshot('logs/success.png'); + $changedValue = $this->findByXpath('//*[@id="content"]/div[1]/table/tbody/tr[1]/td')->getText(); + // restore old name + $this->findByXpath('//*[@id="content"]/div[1]/a')->click(); + $this->waitForName('accountForm'); + $this->findById('firstname')->clear(); + $this->findById('firstname')->sendKeys($oldFirstname); + $this->findById('submitAccount')->click(); + // $this->wd->takeScreenshot('logs/restored.png'); + + $this->assertStringContainsStringIgnoringCase( + $newFirstname, + $changedValue, + "Vorname could not be updated." + ); + } + + #region helper methods + protected function changeLanguage($lang = 'de') + { + $this->wd->get(self::$host . self::$port); + $this->wd->executeScript("document.langForm.mylang.value='" . $lang . "';document.langForm.submit();"); + $this->waitForPartialLinkText('Konto'); + } + + protected function setFullsreen() + { + $this->wd->manage()->window()->maximize(); + } + + protected function logout() + { + $this->wd->get(self::$host . self::$port . '/MyResearch/Logout'); + } + + protected function login($user, $password): bool + { + $this->wd->get(self::$host . self::$port . '/MyResearch/UserLogin'); + $this->findById('login_ILS_username')->sendKeys($user); + $this->findById('login_ILS_password')->sendKeys($password); + $this->findByName('processLogin')->click(); + $this->waitForClass('myresearch-menu'); + return true; + } + #endregion +} -- GitLab