oberonamsterdam / sylius-ingenicopaymentprovider-plugin
Sylius的Ingenico支付服务提供商插件。
0.0.4
2019-12-13 12:55 UTC
Requires
- php: ^7.2
- ingenico-epayments/connect-sdk-php: ^6.5
- sylius/sylius: ^1.6
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^5.0
- phpstan/phpstan-doctrine: ^0.11
- phpstan/phpstan-shim: ^0.11
- phpstan/phpstan-webmozart-assert: ^0.11
- phpunit/phpunit: ^8.0
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^3.0
- symfony/browser-kit: ^3.4|^4.3
- symfony/debug-bundle: ^3.4|^4.3
- symfony/dotenv: ^4.3
- symfony/intl: ^3.4|^4.3
- symfony/web-profiler-bundle: ^3.4|^4.3
- symfony/web-server-bundle: ^3.4|^4.3
This package is auto-updated.
Last update: 2024-09-13 23:17:58 UTC
README
插件骨架
用于启动Sylius插件的骨架。
安装
-
运行
composer create-project sylius/plugin-skeleton ProjectName
。 -
从插件骨架根目录,运行以下命令
$ (cd tests/Application && yarn install) $ (cd tests/Application && yarn build) $ (cd tests/Application && bin/console assets:install public -e test) $ (cd tests/Application && bin/console doctrine:database:create -e test) $ (cd tests/Application && bin/console doctrine:schema:create -e test)
要设置插件数据库,请记得在tests/Application/.env
和tests/Application/.env.test
中配置您的数据库凭据。
用法
运行插件测试
-
PHPUnit
$ vendor/bin/phpunit
-
PHPSpec
$ vendor/bin/phpspec run
-
Behat(非JS场景)
$ vendor/bin/behat --tags="~@javascript"
-
Behat(JS场景)
-
使用先前下载的Chromedriver运行Selenium服务器
$ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone.jar
-
在
localhost:8080
上运行测试应用程序的web服务器$ (cd tests/Application && bin/console server:run localhost:8080 -d public -e test)
-
运行Behat
$ vendor/bin/behat --tags="@javascript"
使用您的插件打开Sylius
-
使用
test
环境$ (cd tests/Application && bin/console sylius:fixtures:load -e test) $ (cd tests/Application && bin/console server:run -d public -e test)
-
使用
dev
环境$ (cd tests/Application && bin/console sylius:fixtures:load -e dev) $ (cd tests/Application && bin/console server:run -d public -e dev)