From 76547bf3a1f74fbfa6917cc1630a1612b347c7d3 Mon Sep 17 00:00:00 2001 From: kiy0taka Date: Wed, 10 May 2023 22:26:11 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=81=8C=E3=82=8F=E3=81=8B?= =?UTF-8?q?=E3=82=8A=E3=81=A5=E3=82=89=E3=81=8F=E3=81=AA=E3=82=8B=E3=81=AE?= =?UTF-8?q?=E3=81=A7=E3=83=97=E3=83=A9=E3=82=B0=E3=82=A4=E3=83=B3=E3=82=92?= =?UTF-8?q?=E5=B1=95=E9=96=8B=E3=81=97=E3=81=A6=E3=81=8A=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/coverage.yml | 8 ++- .github/workflows/e2e-test.yml | 5 +- codeception/_data/plugins/Assets-1.0.0.tgz | Bin 743 -> 0 bytes .../Assets-1.0.0/Resource/assets/assets.js | 3 + .../_data/plugins/Assets-1.0.0/composer.json | 9 +++ codeception/_data/plugins/Assets-1.0.1.tgz | Bin 847 -> 0 bytes .../Assets-1.0.1/Resource/assets/assets.js | 3 + .../Assets-1.0.1/Resource/assets/updated.js | 3 + .../_data/plugins/Assets-1.0.1/composer.json | 9 +++ codeception/_data/plugins/Boomerang-1.0.0.tgz | Bin 2334 -> 0 bytes .../Controller/BoomerangController.php | 67 ++++++++++++++++++ .../plugins/Boomerang-1.0.0/Entity/Bar.php | 44 ++++++++++++ .../Boomerang-1.0.0/Entity/CartTrait.php | 27 +++++++ .../plugins/Boomerang-1.0.0/PluginManager.php | 39 ++++++++++ .../Repository/BarRepository.php | 26 +++++++ .../plugins/Boomerang-1.0.0/composer.json | 1 + .../_data/plugins/Boomerang10-1.0.0.tgz | Bin 1138 -> 0 bytes .../Boomerang10-1.0.0/Entity/BarTrait.php | 20 ++++++ .../Boomerang10-1.0.0/PluginManager.php | 57 +++++++++++++++ .../plugins/Boomerang10-1.0.0/composer.json | 13 ++++ codeception/_data/plugins/Bundle-1.0.0.tgz | Bin 2087 -> 0 bytes .../Bundle-1.0.0/Bundle/BundleBundle.php | 28 ++++++++ .../Compiler/BundleCompilerPass.php | 31 ++++++++ .../Bundle-1.0.0/Resource/config/bundles.php | 17 +++++ .../Bundle-1.0.0/Resource/config/routes.php | 16 +++++ .../Resource/config/services.yaml | 61 ++++++++++++++++ .../_data/plugins/Bundle-1.0.0/composer.json | 19 +++++ codeception/_data/plugins/Bundle-1.0.1.tgz | Bin 2078 -> 0 bytes .../Bundle-1.0.1/Bundle/BundleBundle.php | 28 ++++++++ .../Compiler/BundleCompilerPass.php | 31 ++++++++ .../Bundle-1.0.1/Resource/config/bundles.php | 17 +++++ .../Bundle-1.0.1/Resource/config/routes.php | 16 +++++ .../Resource/config/services.yaml | 61 ++++++++++++++++ .../_data/plugins/Bundle-1.0.1/composer.json | 17 +++++ codeception/_data/plugins/Emperor-1.0.0.tgz | Bin 2403 -> 0 bytes .../Emperor-1.0.0/Entity/CartTrait.php | 21 ++++++ .../plugins/Emperor-1.0.0/Entity/Foo.php | 46 ++++++++++++ .../plugins/Emperor-1.0.0/PluginManager.php | 56 +++++++++++++++ .../Repository/FooRepository.php | 26 +++++++ .../_data/plugins/Emperor-1.0.0/composer.json | 1 + codeception/_data/plugins/Emperor-1.0.1.tgz | Bin 2433 -> 0 bytes .../plugins/Emperor-1.0.1/Entity/Bar.php | 46 ++++++++++++ .../Emperor-1.0.1/Entity/Cart2Trait.php | 21 ++++++ .../plugins/Emperor-1.0.1/PluginManager.php | 65 +++++++++++++++++ .../Repository/BarRepository.php | 26 +++++++ .../_data/plugins/Emperor-1.0.1/composer.json | 1 + codeception/_data/plugins/Horizon-1.0.0.tgz | Bin 2453 -> 0 bytes .../Horizon-1.0.0/Entity/CartTrait.php | 26 +++++++ .../plugins/Horizon-1.0.0/Entity/Dash.php | 46 ++++++++++++ .../plugins/Horizon-1.0.0/PluginManager.php | 60 ++++++++++++++++ .../Repository/DashRepository.php | 26 +++++++ .../_data/plugins/Horizon-1.0.0/composer.json | 1 + codeception/_data/plugins/Horizon-1.0.1.tgz | Bin 2294 -> 0 bytes .../Horizon-1.0.1/Entity/CartTrait.php | 26 +++++++ .../plugins/Horizon-1.0.1/Entity/Dash.php | 53 ++++++++++++++ .../plugins/Horizon-1.0.1/PluginManager.php | 67 ++++++++++++++++++ .../Repository/DashRepository.php | 26 +++++++ .../_data/plugins/Horizon-1.0.1/composer.json | 1 + codeception/_data/plugins/InstallError.tgz | Bin 504 -> 0 bytes .../_data/plugins/InstallError/composer.json | 9 +++ codeception/_data/plugins/Template-1.0.0.tgz | Bin 981 -> 0 bytes .../Template-1.0.0/Controller/Controller.php | 30 ++++++++ .../Resource/template/index.twig | 1 + .../plugins/Template-1.0.0/composer.json | 12 ++++ codeception/_support/AcceptanceTester.php | 16 +++++ .../Page/Admin/PluginLocalInstallPage.php | 7 +- .../_support/Page/Admin/PluginManagePage.php | 5 +- codeception/acceptance/EA10PluginCest.php | 26 +++---- 68 files changed, 1398 insertions(+), 25 deletions(-) delete mode 100644 codeception/_data/plugins/Assets-1.0.0.tgz create mode 100644 codeception/_data/plugins/Assets-1.0.0/Resource/assets/assets.js create mode 100644 codeception/_data/plugins/Assets-1.0.0/composer.json delete mode 100644 codeception/_data/plugins/Assets-1.0.1.tgz create mode 100644 codeception/_data/plugins/Assets-1.0.1/Resource/assets/assets.js create mode 100644 codeception/_data/plugins/Assets-1.0.1/Resource/assets/updated.js create mode 100644 codeception/_data/plugins/Assets-1.0.1/composer.json delete mode 100644 codeception/_data/plugins/Boomerang-1.0.0.tgz create mode 100644 codeception/_data/plugins/Boomerang-1.0.0/Controller/BoomerangController.php create mode 100644 codeception/_data/plugins/Boomerang-1.0.0/Entity/Bar.php create mode 100644 codeception/_data/plugins/Boomerang-1.0.0/Entity/CartTrait.php create mode 100644 codeception/_data/plugins/Boomerang-1.0.0/PluginManager.php create mode 100644 codeception/_data/plugins/Boomerang-1.0.0/Repository/BarRepository.php create mode 100644 codeception/_data/plugins/Boomerang-1.0.0/composer.json delete mode 100644 codeception/_data/plugins/Boomerang10-1.0.0.tgz create mode 100644 codeception/_data/plugins/Boomerang10-1.0.0/Entity/BarTrait.php create mode 100644 codeception/_data/plugins/Boomerang10-1.0.0/PluginManager.php create mode 100644 codeception/_data/plugins/Boomerang10-1.0.0/composer.json delete mode 100644 codeception/_data/plugins/Bundle-1.0.0.tgz create mode 100644 codeception/_data/plugins/Bundle-1.0.0/Bundle/BundleBundle.php create mode 100644 codeception/_data/plugins/Bundle-1.0.0/DependencyInjection/Compiler/BundleCompilerPass.php create mode 100644 codeception/_data/plugins/Bundle-1.0.0/Resource/config/bundles.php create mode 100644 codeception/_data/plugins/Bundle-1.0.0/Resource/config/routes.php create mode 100644 codeception/_data/plugins/Bundle-1.0.0/Resource/config/services.yaml create mode 100644 codeception/_data/plugins/Bundle-1.0.0/composer.json delete mode 100644 codeception/_data/plugins/Bundle-1.0.1.tgz create mode 100644 codeception/_data/plugins/Bundle-1.0.1/Bundle/BundleBundle.php create mode 100644 codeception/_data/plugins/Bundle-1.0.1/DependencyInjection/Compiler/BundleCompilerPass.php create mode 100644 codeception/_data/plugins/Bundle-1.0.1/Resource/config/bundles.php create mode 100644 codeception/_data/plugins/Bundle-1.0.1/Resource/config/routes.php create mode 100644 codeception/_data/plugins/Bundle-1.0.1/Resource/config/services.yaml create mode 100644 codeception/_data/plugins/Bundle-1.0.1/composer.json delete mode 100644 codeception/_data/plugins/Emperor-1.0.0.tgz create mode 100644 codeception/_data/plugins/Emperor-1.0.0/Entity/CartTrait.php create mode 100644 codeception/_data/plugins/Emperor-1.0.0/Entity/Foo.php create mode 100644 codeception/_data/plugins/Emperor-1.0.0/PluginManager.php create mode 100644 codeception/_data/plugins/Emperor-1.0.0/Repository/FooRepository.php create mode 100644 codeception/_data/plugins/Emperor-1.0.0/composer.json delete mode 100644 codeception/_data/plugins/Emperor-1.0.1.tgz create mode 100644 codeception/_data/plugins/Emperor-1.0.1/Entity/Bar.php create mode 100644 codeception/_data/plugins/Emperor-1.0.1/Entity/Cart2Trait.php create mode 100644 codeception/_data/plugins/Emperor-1.0.1/PluginManager.php create mode 100644 codeception/_data/plugins/Emperor-1.0.1/Repository/BarRepository.php create mode 100644 codeception/_data/plugins/Emperor-1.0.1/composer.json delete mode 100644 codeception/_data/plugins/Horizon-1.0.0.tgz create mode 100644 codeception/_data/plugins/Horizon-1.0.0/Entity/CartTrait.php create mode 100644 codeception/_data/plugins/Horizon-1.0.0/Entity/Dash.php create mode 100644 codeception/_data/plugins/Horizon-1.0.0/PluginManager.php create mode 100644 codeception/_data/plugins/Horizon-1.0.0/Repository/DashRepository.php create mode 100644 codeception/_data/plugins/Horizon-1.0.0/composer.json delete mode 100644 codeception/_data/plugins/Horizon-1.0.1.tgz create mode 100644 codeception/_data/plugins/Horizon-1.0.1/Entity/CartTrait.php create mode 100644 codeception/_data/plugins/Horizon-1.0.1/Entity/Dash.php create mode 100644 codeception/_data/plugins/Horizon-1.0.1/PluginManager.php create mode 100644 codeception/_data/plugins/Horizon-1.0.1/Repository/DashRepository.php create mode 100644 codeception/_data/plugins/Horizon-1.0.1/composer.json delete mode 100644 codeception/_data/plugins/InstallError.tgz create mode 100644 codeception/_data/plugins/InstallError/composer.json delete mode 100644 codeception/_data/plugins/Template-1.0.0.tgz create mode 100644 codeception/_data/plugins/Template-1.0.0/Controller/Controller.php create mode 100644 codeception/_data/plugins/Template-1.0.0/Resource/template/index.twig create mode 100644 codeception/_data/plugins/Template-1.0.0/composer.json diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b8d41dfbb27..8df0ea0f52e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -44,7 +44,7 @@ jobs: uses: nanasess/setup-php@master with: php-version: ${{ matrix.php }} - + - name: Setup pcov run: | sudo apt-fast install -y php8.1-pcov @@ -155,7 +155,11 @@ jobs: run: | if [[ ! -d ${PWD}/repos ]]; then mkdir -p ${PWD}/repos ; fi docker run -d --rm -v ${PWD}/repos:/repos -e MOCK_REPO_DIR=/repos -p 8080:8080 eccube/mock-package-api:composer2 - cp codeception/_data/plugins/*-1.0.0.tgz repos + for d in $(ls codeception/_data/plugins | grep 1.0.0) + do + (cd codeception/_data/plugins/$d; tar zcf ../../../../repos/${d}.tgz *) + done + - name: Setup pcov run: | diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 6d6e7a595a4..10737841995 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -97,7 +97,10 @@ jobs: run: | if [[ ! -d ${PWD}/repos ]]; then mkdir -p ${PWD}/repos ; fi docker run -d --rm -v ${PWD}/repos:/repos -e MOCK_REPO_DIR=/repos -p 8080:8080 eccube/mock-package-api:composer2 - cp codeception/_data/plugins/*-1.0.0.tgz repos + for d in $(ls codeception/_data/plugins | grep 1.0.0) + do + (cd codeception/_data/plugins/$d; tar zcf ../../../../repos/${d}.tgz *) + done - name: Start PHP Development Server if: ${{ matrix.group != 'restrict-fileupload' }} diff --git a/codeception/_data/plugins/Assets-1.0.0.tgz b/codeception/_data/plugins/Assets-1.0.0.tgz deleted file mode 100644 index 699a40b23c520471c0e48945f3d684fadaa7a714..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 743 zcmVHXPlST22)nR{Wd*^L#B^9< zw@FFTWfxgk+C6v_FWzM@;zjZ3ckoLD!H?mj=^vX~*>u~g?EEh2%$sDUnLN*v-2hb5xT0Sj~#w3?Ivk>CgmOVrbCy%M^MIn1JfI%&{RP0Xp_0=vw$ zfdhAmBV}Io|5){YsS=Rb#sUOo6jO^iXn*hF&f%loy{C_DKUR9*D4abT*p9=b0N~gn z6g|=V?mx3z>ZFN7z+}$< zM^)w!?ow9G&s{d>=h*o9%_-}Db*i5-*8fFqf&Y{8^PiMdzyHGu=dh4luK&i?mW8&^ zWZ8A2VRUtSnC877b-GcaVto@t;Y!D-lK)iZ@Bc#EfXV+&P(A;#v<2mk%NYI5_rGCP zat9OFozMT`SgBwCB&nAFOql#%2kTS)ltuZEMi2or`bYY9q1@#ECU|8bR1dw5s^3R- z-!8t%DMOh$K}Tjxgd Z27|$1Fc=I5gTb&Q)=w5KGD-m`005wIl9vDg diff --git a/codeception/_data/plugins/Assets-1.0.0/Resource/assets/assets.js b/codeception/_data/plugins/Assets-1.0.0/Resource/assets/assets.js new file mode 100644 index 00000000000..86e64b4fa03 --- /dev/null +++ b/codeception/_data/plugins/Assets-1.0.0/Resource/assets/assets.js @@ -0,0 +1,3 @@ +/** + * assets.js + */ diff --git a/codeception/_data/plugins/Assets-1.0.0/composer.json b/codeception/_data/plugins/Assets-1.0.0/composer.json new file mode 100644 index 00000000000..a4c09e16838 --- /dev/null +++ b/codeception/_data/plugins/Assets-1.0.0/composer.json @@ -0,0 +1,9 @@ +{ + "name": "ec-cube/assets", + "version": "1.0.0", + "description": "アセットを含むプラグイン", + "type": "eccube-plugin", + "extra": { + "code": "Assets" + } +} diff --git a/codeception/_data/plugins/Assets-1.0.1.tgz b/codeception/_data/plugins/Assets-1.0.1.tgz deleted file mode 100644 index 97dffcfdc3c1dc2095ef9f33bbdddfc681f8b0f1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 847 zcmV-V1F-xbiwFRJ`Ga2o1MOKsYuhjw&943hJBl95>U@$uN%kPHZVX!3p>#0VX?Te# zUYa=ANog5{lI*bK*k$+8%h+XO$Nh)>2{YKwm|Q0|b(%G4oopj|2{_i1EG6=LPjdFW z;~n2?`B8n}kHbOK^lOy^0F)4_b}+T8{GQaKlVR}iR$Z1 z>|>(;GyVDQn+NCV@y@TWKcGNK|0sdhh*;v7a;&-j^ZDP)gTRYpzaLlF$Nc`!8D&b( zzf_VL|6c_b^nV2?gsp%Hha>Wm|6jpg_J7K33E&X#9T~ zx&AZNFC_-%_y1h~6wvtpDo~#PA_fM%me==N_N!Y*f&M)t;%xtCs^tHS>bLR#Rp3Vc zFI>%l%jK2+FI@dXnzg;k|8)X@UjNVS=cp(ZY|786@$=iGtpDm%UtpsDv)T;*XR@S! z-9Xj|R5yg#Sabc?H#aS^Ns4LLXLTd2wZZKC&kCwAg8B1b@BbB~`j?8E{9gqYfBvVW zty3PjRHD59o3N5GN!iT(pN@3K7Rdi}Kj)&!|7D=8|LRm<;QIV8>7OdamC65AV4VN? zw43-}FBEy-3_HCr_9J~0gxyN}xIX_eU;hh+>GK~<*Z(H}myd<_|GJj#y2v;eIKBVR zSb<2+l8aa|5f0%MaV|i z>-Zb@$%fzDY7Smb)`A=NQtrr);vnp%G_}E|S!v6Un^Dl~kC|lnF&TbOMx$i(HW|ME z`R;QvJWEC&lF_GR_$3*hC!=p!!~RKc+*R7sR_}0d5Og!jKki4K=F%bQ(`MMZsJWdD ZMi-u1r$+Mz1_lNd;Wwj7{QLkY003?O&LjW; diff --git a/codeception/_data/plugins/Assets-1.0.1/Resource/assets/assets.js b/codeception/_data/plugins/Assets-1.0.1/Resource/assets/assets.js new file mode 100644 index 00000000000..86e64b4fa03 --- /dev/null +++ b/codeception/_data/plugins/Assets-1.0.1/Resource/assets/assets.js @@ -0,0 +1,3 @@ +/** + * assets.js + */ diff --git a/codeception/_data/plugins/Assets-1.0.1/Resource/assets/updated.js b/codeception/_data/plugins/Assets-1.0.1/Resource/assets/updated.js new file mode 100644 index 00000000000..ced822278ab --- /dev/null +++ b/codeception/_data/plugins/Assets-1.0.1/Resource/assets/updated.js @@ -0,0 +1,3 @@ +/** + * updated.js + */ diff --git a/codeception/_data/plugins/Assets-1.0.1/composer.json b/codeception/_data/plugins/Assets-1.0.1/composer.json new file mode 100644 index 00000000000..b40822ad81b --- /dev/null +++ b/codeception/_data/plugins/Assets-1.0.1/composer.json @@ -0,0 +1,9 @@ +{ + "name": "ec-cube/assets", + "version": "1.0.1", + "description": "アセットを含むプラグイン", + "type": "eccube-plugin", + "extra": { + "code": "Assets" + } +} diff --git a/codeception/_data/plugins/Boomerang-1.0.0.tgz b/codeception/_data/plug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(*AkyZ3qNaNiVnqZ1&IlZMxpDye0Zcx zG%niSABJ=Yk{S6ea2Vt~B>hI2`*9eYFsSx#xb?iZ$!-2|FAvOyVNpS_Hpn|piRsw+ zLrqm5CC8AEkdTm&kdTm&kdTm&kdTm&kdTm&kdTm&kdTm&kdTm&kobx4Kd2tB)Btz@ E0Dm^bfdBvi diff --git a/codeception/_data/plugins/Boomerang-1.0.0/Controller/BoomerangController.php b/codeception/_data/plugins/Boomerang-1.0.0/Controller/BoomerangController.php new file mode 100644 index 00000000000..20e7bbb1ac5 --- /dev/null +++ b/codeception/_data/plugins/Boomerang-1.0.0/Controller/BoomerangController.php @@ -0,0 +1,67 @@ +cartRepository = $cartRepository; + } + + /** + * @Route("/boomerang", name="boomerang") + * @return JsonResponse + */ + public function index() + { + /** @var Cart[] $list */ + $list = $this->cartRepository->findAll(); + $ids = array_map(function (Cart $c) { return $c->getId(); }, $list); + + return $this->json($ids); + } + + /** + * @Route("/boomerang/new") + */ + public function new() + { + $Bar = new Bar(); + $Bar->name = 'bar'; + $this->entityManager->persist($Bar); + + $Cart = new Cart(); + $Cart->setTotalPrice(0); + $Cart->setDeliveryFeeTotal(0); + $Cart->bar = $Bar; + + $this->cartRepository->save($Cart); + $this->entityManager->flush(); + + return $this->redirectToRoute('boomerang'); + } +} \ No newline at end of file diff --git a/codeception/_data/plugins/Boomerang-1.0.0/Entity/Bar.php b/codeception/_data/plugins/Boomerang-1.0.0/Entity/Bar.php new file mode 100644 index 00000000000..560af7728e4 --- /dev/null +++ b/codeception/_data/plugins/Boomerang-1.0.0/Entity/Bar.php @@ -0,0 +1,44 @@ +h(c(gvVunuReaSs8#Bb4-3YumzxQL4*v1p$0T)La3F%^(Ks2L>ea~;-*}= z!yqA7Bh5H46kP*;;`+1&al^!hhIFJN zbYSWDz%rCCZEk@zLuP$_qdF$}|C#^&)z8PjE#*HS%;&#h=(q&%My<;6!t+1(f9IA4 zPDu1aMBGFTFT*wI;OAi)#-r|kYzhDKo2a<|w}Xf7e|XR^RYPkaY?ufZ_y2Q4p8p%j z`Y9&)|GBjK{>Ko_=RY(}6PAFsc1u>^h3Eg*-*AsB3L`#^Lt<0V@zR0Ix+g*4(}=JE z)VeZ8nu?;NF$HbgPJ6WbiZOm(i5swdzI~lg7V~j46FUv;Byt(;zWwgJdrrd8WdlHB zz=wRN`re)b_Q3JN(n@(zeZF~@2WYvjnRB155mm8VmhjqoG1% zA`2UOLI2MVo6Gts9^iii8+bndp=sz=!T;O9Bly3mEEBq9zM6P`niQe(3iDHsn<8hXJE3>7LS%GKVsIc*fpSJF7Zg2P`4np6HAvH0pEPxuLd4 z;uy>+1yocQP7GF>l-CbAm-kbaZ4O+>0Gqme%oBw<4jrtW*h>bs;SzYEB>2SUP;LkYR<)Aht3W25=dZSrZsaS z`$q$sRCb*_a?~L5RVjVpOYz<6RP#=ch~J~*b=#1B2H+JQeSH}@+0MI@c+LJXs8xOI@TI` z@%{hVVRKnO#a;dXF23HI@^QH)MI0L2 zksFF4LP(BBzl=wJjYq$ZN579pe~d?ePDMY8zDbHnGS8oj@9a{GP_iFpjre3Tq90N> z67$niW7!_D{3p4oq}O~kZ}KBDzt#?%OxwxQyJXX@!zZDJ{tql&pulGEH{?*L&HyL? E04YF5>Hq)$ diff --git a/codeception/_data/plugins/Boomerang10-1.0.0/Entity/BarTrait.php b/codeception/_data/plugins/Boomerang10-1.0.0/Entity/BarTrait.php new file mode 100644 index 00000000000..176d06dd83e --- /dev/null +++ b/codeception/_data/plugins/Boomerang10-1.0.0/Entity/BarTrait.php @@ -0,0 +1,20 @@ +get('doctrine.orm.entity_manager'); + $bar = new Bar(); + $bar->id = 2; + $bar->name = 'Boomerang10 1.0.0'; + $bar->mail = 'bar@example.com'; + $entityManager->persist($bar); + $entityManager->flush($bar); + } + + public function enable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Enable Boomerang10 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 2); + } + + public function disable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Disable Boomerang10 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 2); + } + + public function update(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Update Boomerang10 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 2); + } + + public function uninstall(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Uninstall Boomerang10 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 2); + } +} diff --git a/codeception/_data/plugins/Boomerang10-1.0.0/composer.json b/codeception/_data/plugins/Boomerang10-1.0.0/composer.json new file mode 100644 index 00000000000..c45201d2405 --- /dev/null +++ b/codeception/_data/plugins/Boomerang10-1.0.0/composer.json @@ -0,0 +1,13 @@ +{ + "name": "ec-cube/boomerang10", + "description": "ブーメラン・10", + "version": "1.0.0", + "type": "eccube-plugin", + "require": { + "ec-cube/boomerang": "~1.0.0" + }, + "extra": { + "code": "Boomerang10", + "id": 102 + } +} diff --git a/codeception/_data/plugins/Bundle-1.0.0.tgz b/codeception/_data/plugins/Bundle-1.0.0.tgz deleted file mode 100644 index b565cc186a49cf95a5744b7a54ac3ffb73bbb7e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2087 zcmV+?2-x=@iwFP!000001MOOEbK*D>&S(D$ZFZ)Bt-)XeaTVE_yM$qCQk$JnK=x{H z$hj0-fM$&BmF*DjD*ydjlFeHnBsr3;yVLUlgVpM8t6S+p?^Ks%6(5>i{)g)T<0>oM4X70mBT(B#yVq?P~uo#i@$Fx~NYx z8b^DzAp(3-L5xkRT2M2qj7YAs(bZf3;xg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sg zCyS(znpV8Yu9-*cj))@?P_X($59HHx`mZF>(-o`)`sv*l(b(BncHSDM#SE7RA5HW{ zN)90Y&LA@(eppWS}E8$Dpfo(d*}J$Hv|9BNnLj`F|~sBlo)i?3({a4M)v?yU~E1znK3GtFGt& zYe2vM$>0BE3)EM|BRBj7Xt4ZOnr2hIae4m%wjnqO3gVmChh4ps3U(g&D}nnB+Z7vE zkD1UC`TO4^nD~x3|E<>a{C^dQLVGA)eI7Q^VKyzw?W%UwIHF4O@P%c_k zxu4rtLS@PzHlhfM{{OHu+aRZEraG&$%c^FUGpB`U)vV>BOS?DOWSMr}G$q&I^KE6s zaWwuTD8oXiMCxD(MDC=MaddCompilerPass(new BundleCompilerPass()); + } +} diff --git a/codeception/_data/plugins/Bundle-1.0.0/DependencyInjection/Compiler/BundleCompilerPass.php b/codeception/_data/plugins/Bundle-1.0.0/DependencyInjection/Compiler/BundleCompilerPass.php new file mode 100644 index 00000000000..9c033a5a4c3 --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.0/DependencyInjection/Compiler/BundleCompilerPass.php @@ -0,0 +1,31 @@ +getParameter('eccube.plugins.enabled'); + if (!in_array('Bundle', $plugins)) { + if ($container->hasDefinition('League\Bundle\OAuth2ServerBundle\EventListener\AddClientDefaultScopesListener')) { + $def = $container->getDefinition('League\Bundle\OAuth2ServerBundle\EventListener\AddClientDefaultScopesListener'); + $def->clearTags(); + } + } + } +} diff --git a/codeception/_data/plugins/Bundle-1.0.0/Resource/config/bundles.php b/codeception/_data/plugins/Bundle-1.0.0/Resource/config/bundles.php new file mode 100644 index 00000000000..2be7433774d --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.0/Resource/config/bundles.php @@ -0,0 +1,17 @@ + ['all' => true], + League\Bundle\OAuth2ServerBundle\LeagueOAuth2ServerBundle::class => ['all' => true] +]; diff --git a/codeception/_data/plugins/Bundle-1.0.0/Resource/config/routes.php b/codeception/_data/plugins/Bundle-1.0.0/Resource/config/routes.php new file mode 100644 index 00000000000..c7a50f5af2c --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.0/Resource/config/routes.php @@ -0,0 +1,16 @@ +add('oauth2_authorize', '/%eccube_admin_route%/authorize') + ->controller(['league.oauth2_server.controller.authorization', 'indexAction']) + + ->add('oauth2_token', '/token') + ->controller(['league.oauth2_server.controller.token', 'indexAction']) + ->methods(['POST']) + ; +}; diff --git a/codeception/_data/plugins/Bundle-1.0.0/Resource/config/services.yaml b/codeception/_data/plugins/Bundle-1.0.0/Resource/config/services.yaml new file mode 100644 index 00000000000..8c3da918ea9 --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.0/Resource/config/services.yaml @@ -0,0 +1,61 @@ +security: + enable_authenticator_manager: true +parameters: + env(ECCUBE_OAUTH2_AUTHORIZATION_SERVER_PRIVATE_KEY): '%kernel.project_dir%/app/PluginData/Api42/oauth/private.key' + env(ECCUBE_OAUTH2_RESOURCE_SERVER_PUBLIC_KEY): '%kernel.project_dir%/app/PluginData/Api42/oauth/public.key' + env(ECCUBE_OAUTH2_ENCRYPTION_KEY): '' + +league_oauth2_server: + role_prefix: ROLE_OAUTH2_ + + authorization_server: + private_key: '%env(ECCUBE_OAUTH2_AUTHORIZATION_SERVER_PRIVATE_KEY)%' + private_key_passphrase: null + encryption_key: '%env(ECCUBE_OAUTH2_ENCRYPTION_KEY)%' + + # Whether to enable the client credentials grant + enable_client_credentials_grant: false + + # Whether to enable the password grant + enable_password_grant: false + + # Whether to enable the refresh token grant + enable_refresh_token_grant: true + + # Whether to enable the authorization code grant + enable_auth_code_grant: true + + # Whether to enable the implicit grant + enable_implicit_grant: false + + resource_server: + public_key: '%env(ECCUBE_OAUTH2_RESOURCE_SERVER_PUBLIC_KEY)%' + + scopes: + available: ['read', 'write'] + default: ['read'] + + persistence: + doctrine: null + +services: + # Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories) + Psr\Http\Message\RequestFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\StreamFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\UriFactoryInterface: '@nyholm.psr7.psr17_factory' + + # Register nyholm/psr7 services for autowiring with HTTPlug factories + Http\Message\MessageFactory: '@nyholm.psr7.httplug_factory' + Http\Message\RequestFactory: '@nyholm.psr7.httplug_factory' + Http\Message\ResponseFactory: '@nyholm.psr7.httplug_factory' + Http\Message\StreamFactory: '@nyholm.psr7.httplug_factory' + Http\Message\UriFactory: '@nyholm.psr7.httplug_factory' + + nyholm.psr7.psr17_factory: + class: Nyholm\Psr7\Factory\Psr17Factory + + nyholm.psr7.httplug_factory: + class: Nyholm\Psr7\Factory\HttplugFactory diff --git a/codeception/_data/plugins/Bundle-1.0.0/composer.json b/codeception/_data/plugins/Bundle-1.0.0/composer.json new file mode 100644 index 00000000000..e8ce7f5bd69 --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.0/composer.json @@ -0,0 +1,19 @@ +{ + "name": "ec-cube/bundle", + "version": "1.0.0", + "description": "Symfony Bundle tester", + "type": "eccube-plugin", + "require": { + "ec-cube/plugin-installer": "^2.0", + "league/oauth2-server-bundle": "^0.3", + "nyholm/psr7": "^1.2", + "webonyx/graphql-php": "^14.0" + }, + "extra": { + "code": "Bundle", + "id": 101, + "entity-namespaces": [ + "League\\Bundle\\OAuth2ServerBundle\\Model" + ] + } +} diff --git a/codeception/_data/plugins/Bundle-1.0.1.tgz b/codeception/_data/plugins/Bundle-1.0.1.tgz deleted file mode 100644 index 6116d88bc8f5d81730ced2d189487eb12e650375..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2078 zcmV+(2;ui1iwFP!000001MOOEbK*D>&S(D$Ejv@d)?l!Ct0FsdmoQ9CYO@mxlD*m+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=LCDe`}0#+pGf|CF61drJQulExZ_h@m$s{jwTc`g1-r<*VaDJ|)!|T@uB?eEF@aEIQbmQ0B;vK=J1y#U&-8 zOb0C7C%o`AuZX(2Le$NLgtgeA&6a(5yhB7a>pwm2urpL9%pd$#?#qBXk5g${I~0kYNaaXf4!pr|MM!)?|-uQ zKj{MXRq@CTe*qdS|COfIQg2+|e}H2M_Wiv0CeC5k@1%mA1%D;*uwlDmZspXTscLn0N$r`X)M+7FF{_#A(&N8+5i9m diff --git a/codeception/_data/plugins/Bundle-1.0.1/Bundle/BundleBundle.php b/codeception/_data/plugins/Bundle-1.0.1/Bundle/BundleBundle.php new file mode 100644 index 00000000000..e2a4971f4a9 --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.1/Bundle/BundleBundle.php @@ -0,0 +1,28 @@ +addCompilerPass(new BundleCompilerPass()); + } +} diff --git a/codeception/_data/plugins/Bundle-1.0.1/DependencyInjection/Compiler/BundleCompilerPass.php b/codeception/_data/plugins/Bundle-1.0.1/DependencyInjection/Compiler/BundleCompilerPass.php new file mode 100644 index 00000000000..9c033a5a4c3 --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.1/DependencyInjection/Compiler/BundleCompilerPass.php @@ -0,0 +1,31 @@ +getParameter('eccube.plugins.enabled'); + if (!in_array('Bundle', $plugins)) { + if ($container->hasDefinition('League\Bundle\OAuth2ServerBundle\EventListener\AddClientDefaultScopesListener')) { + $def = $container->getDefinition('League\Bundle\OAuth2ServerBundle\EventListener\AddClientDefaultScopesListener'); + $def->clearTags(); + } + } + } +} diff --git a/codeception/_data/plugins/Bundle-1.0.1/Resource/config/bundles.php b/codeception/_data/plugins/Bundle-1.0.1/Resource/config/bundles.php new file mode 100644 index 00000000000..2be7433774d --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.1/Resource/config/bundles.php @@ -0,0 +1,17 @@ + ['all' => true], + League\Bundle\OAuth2ServerBundle\LeagueOAuth2ServerBundle::class => ['all' => true] +]; diff --git a/codeception/_data/plugins/Bundle-1.0.1/Resource/config/routes.php b/codeception/_data/plugins/Bundle-1.0.1/Resource/config/routes.php new file mode 100644 index 00000000000..c7a50f5af2c --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.1/Resource/config/routes.php @@ -0,0 +1,16 @@ +add('oauth2_authorize', '/%eccube_admin_route%/authorize') + ->controller(['league.oauth2_server.controller.authorization', 'indexAction']) + + ->add('oauth2_token', '/token') + ->controller(['league.oauth2_server.controller.token', 'indexAction']) + ->methods(['POST']) + ; +}; diff --git a/codeception/_data/plugins/Bundle-1.0.1/Resource/config/services.yaml b/codeception/_data/plugins/Bundle-1.0.1/Resource/config/services.yaml new file mode 100644 index 00000000000..8c3da918ea9 --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.1/Resource/config/services.yaml @@ -0,0 +1,61 @@ +security: + enable_authenticator_manager: true +parameters: + env(ECCUBE_OAUTH2_AUTHORIZATION_SERVER_PRIVATE_KEY): '%kernel.project_dir%/app/PluginData/Api42/oauth/private.key' + env(ECCUBE_OAUTH2_RESOURCE_SERVER_PUBLIC_KEY): '%kernel.project_dir%/app/PluginData/Api42/oauth/public.key' + env(ECCUBE_OAUTH2_ENCRYPTION_KEY): '' + +league_oauth2_server: + role_prefix: ROLE_OAUTH2_ + + authorization_server: + private_key: '%env(ECCUBE_OAUTH2_AUTHORIZATION_SERVER_PRIVATE_KEY)%' + private_key_passphrase: null + encryption_key: '%env(ECCUBE_OAUTH2_ENCRYPTION_KEY)%' + + # Whether to enable the client credentials grant + enable_client_credentials_grant: false + + # Whether to enable the password grant + enable_password_grant: false + + # Whether to enable the refresh token grant + enable_refresh_token_grant: true + + # Whether to enable the authorization code grant + enable_auth_code_grant: true + + # Whether to enable the implicit grant + enable_implicit_grant: false + + resource_server: + public_key: '%env(ECCUBE_OAUTH2_RESOURCE_SERVER_PUBLIC_KEY)%' + + scopes: + available: ['read', 'write'] + default: ['read'] + + persistence: + doctrine: null + +services: + # Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories) + Psr\Http\Message\RequestFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\StreamFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\UriFactoryInterface: '@nyholm.psr7.psr17_factory' + + # Register nyholm/psr7 services for autowiring with HTTPlug factories + Http\Message\MessageFactory: '@nyholm.psr7.httplug_factory' + Http\Message\RequestFactory: '@nyholm.psr7.httplug_factory' + Http\Message\ResponseFactory: '@nyholm.psr7.httplug_factory' + Http\Message\StreamFactory: '@nyholm.psr7.httplug_factory' + Http\Message\UriFactory: '@nyholm.psr7.httplug_factory' + + nyholm.psr7.psr17_factory: + class: Nyholm\Psr7\Factory\Psr17Factory + + nyholm.psr7.httplug_factory: + class: Nyholm\Psr7\Factory\HttplugFactory diff --git a/codeception/_data/plugins/Bundle-1.0.1/composer.json b/codeception/_data/plugins/Bundle-1.0.1/composer.json new file mode 100644 index 00000000000..43a48f0c5a6 --- /dev/null +++ b/codeception/_data/plugins/Bundle-1.0.1/composer.json @@ -0,0 +1,17 @@ +{ + "name": "ec-cube/bundle", + "version": "1.0.1", + "description": "Symfony Bundle tester", + "type": "eccube-plugin", + "require": { + "ec-cube/plugin-installer": "^2.0", + "league/oauth2-server-bundle": "^0.3", + "nyholm/psr7": "^1.2", + "webonyx/graphql-php": "^14.0" + }, + "extra": { + "code": "Bundle", + "id": 101, + "entity-namespaces": ["League\\Bundle\\OAuth2ServerBundle\\Model"] + } +} diff --git a/codeception/_data/plugins/Emperor-1.0.0.tgz b/codeception/_data/plugins/Emperor-1.0.0.tgz deleted file mode 100644 index b40fbe2acbbb02811bdc3bcc5bd4860a1eb3eb07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00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TF#4o*td0LAUDfmd|80f74*yGv zuHm9yUylE$xl1>IG)Xp$HSxcmget('doctrine.orm.entity_manager'); + $foo = new Foo(); + $foo->id = 1; + $foo->name = 'Emperor 1.0.0'; + $entityManager->persist($foo); + $entityManager->flush($foo); + } + + public function enable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Enable Emperor 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Foo::class, 1); + } + + public function disable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Disable Emperor 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Foo::class, 1); + } + + public function update(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Update Emperor 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Foo::class, 1); + } + + public function uninstall(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Uninstall Emperor 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Foo::class, 1); + } +} diff --git a/codeception/_data/plugins/Emperor-1.0.0/Repository/FooRepository.php b/codeception/_data/plugins/Emperor-1.0.0/Repository/FooRepository.php new file mode 100644 index 00000000000..dadaeec8fab --- /dev/null +++ b/codeception/_data/plugins/Emperor-1.0.0/Repository/FooRepository.php @@ -0,0 +1,26 @@ +)Q_jPMH*FT;R z-6US6O#>^K?rnj1p4T)D_Oyu7Z$2SOQ9zI+Syd%PRV3gAMNp+Z__z&YmMQcD-9uAu ztf>>|H~O`66Fx>y+!dIA|DTYc!pJfklE{l1UsVf&1|dGnf`CPGRW3+8Oaf~{8iFFJ zHSC%oaAK_{h=L{wjB9+6t1oaxk&`qWX+@CLf?S1e=XJB!I_dn<<_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1by!*T zbY#oWp$1n5r3QV1PGYc_f#XBC2$=>+;>+;b@dGCMt_i@4f*>3U60eov@}kK_u=Sy+ z`pa+`Z7==FuyxS?HMOoB(qWfKINQ|jrla_AV1KqgsON%nG14*Gr{W?& zk9-X%5j`c5K-Q&6%eT6RYcj}`EwGtk3touAg}B#Pjf{wg&+(4nH$D|ZjDkj#n8l;O z3&|{K$c}}%QWP%*+#G(c8xWxc0DTn{QU!?AB57tFJ3I~bgJXbd{QvDdHkn|yqd>PkKRYk3ah+o_={!{b#ZyU6|RiDyV;y;Y_wB`Jd$lm|w@!$68EBW90 zJqR^MTgjBEXY;~I-R6J+5hGZbTe09;BeL8I(wju>-}I52qq`esX@@KI_((baY}%AaNE59M1`BrN6Dk7c5>n zeC1>4g@aMbbS(oAUy$s`LnGsX!&f5`l=jVJo^Xyg;bQ6QNi4p9P+z0y@YT?wW(nIp zI*LZI48p+-2i`kIghqkO_aCBmWXNtt=(#u_gSlto{o~k@AItrrYhsM|47`6C8S>qC zr{_07^!Xeimor;_=WE2XZrNO%kHKuFeA(rz`JFiFu>f$EdzHysJY9bWI;&2}9ZNfv zmNT}^Tq}jhbEA^C=f_{U& zbH%-y``|nDN!xhL|3B3H{?AV6arj^5wW=)F*8Kk?%U%5chbnWtiaVu*pkYJ&U(50T zHfVdRKBceVe~^~)KY-Ik%>Vzn6Z#b2**z)}<1j)X6%qrBV!3D%c5OR?tSE35O1xfW zpF@d#nmYR=wW!2E@dV1EX#A3~T#RmdGu2G-WO~|j%Pg~aB=G#_90KH&Q%*VMlv7SQZA$+GKO3M|08jt`Zy@#? diff --git a/codeception/_data/plugins/Emperor-1.0.1/Entity/Bar.php b/codeception/_data/plugins/Emperor-1.0.1/Entity/Bar.php new file mode 100644 index 00000000000..95248980801 --- /dev/null +++ b/codeception/_data/plugins/Emperor-1.0.1/Entity/Bar.php @@ -0,0 +1,46 @@ +saveBar($container); + + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 1); + } + + public function enable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Enable Emperor 1.0.1".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 1); + } + + public function disable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Disable Emperor 1.0.1".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 1); + } + + public function update(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Update Emperor 1.0.1".PHP_EOL; + echo "*******************************************".PHP_EOL; + $this->saveBar($container); + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 1); + } + + public function uninstall(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Uninstall Emperor 1.0.1".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Bar::class, 1); + } + + private function saveBar(ContainerInterface $container) + { + /** @var EntityManager $entityManager */ + $entityManager = $container->get('doctrine.orm.entity_manager'); + $bar = new Bar(); + $bar->id = 1; + $bar->name = 'Emperor 1.0.1'; + $entityManager->persist($bar); + $entityManager->flush($bar); + } +} diff --git a/codeception/_data/plugins/Emperor-1.0.1/Repository/BarRepository.php b/codeception/_data/plugins/Emperor-1.0.1/Repository/BarRepository.php new file mode 100644 index 00000000000..d081b5091a8 --- /dev/null +++ b/codeception/_data/plugins/Emperor-1.0.1/Repository/BarRepository.php @@ -0,0 +1,26 @@ +@==Txd( zOUcpz6N?e6A3JQyRp;V7%D%w9$UetD#`Z|!-z3H{#Hpw+B&6=?>FMbiebY0v%ugr8 zw24=!vw#NUy)BR^iiW1ao)OXPE+(WPQ&JRFS5-}uMGz%TQjIvr?&qxM@_^e72zEX>7MiF5c&>^WvnxYq# zqFNLMQIj<6DqZ4S>x*1-g{zjdqO2HtMlC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>$0kq*5&^Zv1zKYy8j#H z|BFS0fTfbYVg6rD@!vLRd!v3vU%`JW#>(>kA9i|*|8_xN!GGm@GL$ifNkXPP4-AvC z)hnKavVw)!iUrrhp_qR@9`;;@@X#HOTt--Mc}zxx*@$n(4fc^(5$deDEHKd=ufYQ1 z_0VjzGtSv9)Cq*cPuqukElPl90*87bi<2ms$ys%u>qy0Rr)*12QcL#GR zLShYE$i93yWrfyBt6M*7mX~xiVoMv+oS z9FK#eqi9s;LHe@yZR$T0_aDcW{AB(QN46O}2lrn@hWu>aXV2%GbuqDJt9|etKU~|Ato7SI>V>*8iHOiKW%^f2x9$fvjqx zDyzzd>wj%!{jWUVQT5}{Y}9Y>4EP4;zbEJar1bpvZfLIm7test7~h-~+Bp9!OS&Yd z^ZzdBvGadXlw_&6?)-NV2e7s>{~JX`7f`RRG|*U{C9f(d)Mc`XVdKD40y7GGIv0EvS%?b`;aY^>0V7M&UEvm zA(u&-qD}fdpvFARC%;$sP!>M~E1M`Y)|wrZZr5@d%7#{uTd4(Jc*(1SrL)yI;}8}c z9nBY?3g=-ixAG$-R(=qgfqsi`x#3(beDq!Rq;+h5{zF&w^!&$8=yCX8lU3Eg?z$iU z&vWlR|DotoN!<|t8!7(Z25oQD&*&@o9~4Ph#QzvBN_zfxC-gb~zs^yXScee;DNGO1 zW^Ka%v=u>C6u1l((Z1qWQsP%rget('doctrine.orm.entity_manager'); + + $horizon = new Dash(); + $horizon->id = 0; + $horizon->name = 'Horizon'; + + $entityManager->persist($horizon); + $entityManager->flush($horizon); + } + + public function enable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Enable Horizon 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Dash::class, 1); + } + + public function disable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Disable Horizon 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Dash::class, 1); + } + + public function update(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Update Horizon 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Dash::class, 1); + } + + public function uninstall(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Uninstall Horizon 1.0.0".PHP_EOL; + echo "*******************************************".PHP_EOL; + + /** @var EntityManager $entityManager */ + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Dash::class, 1); + } +} diff --git a/codeception/_data/plugins/Horizon-1.0.0/Repository/DashRepository.php b/codeception/_data/plugins/Horizon-1.0.0/Repository/DashRepository.php new file mode 100644 index 00000000000..3c8ae760fdd --- /dev/null +++ b/codeception/_data/plugins/Horizon-1.0.0/Repository/DashRepository.php @@ -0,0 +1,26 @@ +^e4u@t#VR zYbhZOFo~Gakw$jdl&j9gKFU7m_DBNpV{E4aByrRifHXZlJw4q$-~7-vKc5oQCSI}0 z1QnAPTOdVIDuw|sDj|Vp~FH8?r`9vpN zn4ioZ{}kNEcRM1)c|gu$r(iqEZl2T%1k^s(RaGk~dR5P83XBCElVjD;%2lmet!f1v zn!|FrsvDW_t!_#irYP!*TWw<+|9|4|zx?<0|5oB39~R?Z*NxH(Ft(~yOuu;i$K&6g zO#>&UKPtE*cY|%9J#c6r%m0R{XQLd!5qsF{YhBkt<>Q%)&bsf6l@C0Sq%uqau05Z=i@V! zq=dMcSY{r$2RTzn%{}0*thbNqPQWomQnj$A`$;ctpez(T;x6`Rgd(wzw-hbiClL5# z5IA`$0-53WR`>Mcstfh=5Ab`v)2W|#Kh%&}j5wB(8xo14W7nZ58T;j#OiWOBDdByy z(>TQ{^*61vR`-MK!P{2%ym@&EZ!bDfhjzWwZ8fgW>K$lbb=nt~%>uwBk!poTTyJ6+ zps+DVGulL$)bXbs|9}JQqjruBBlCvf09%Bj+kgoc`rH!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jm1n1>%a+6l_kcz%)MSiSh(^2{hg*6DzX!w`DPbbYk11+ob-dEqcE!TpgwGU zoBBV9`A;HEelhz8u5F4R!TeXDBG1+OlD=o6#`JvpaIQ``lB9f&j9-(O6B&=^<`v#` z4$6L29E&AIYtF=aJ&QBs4J?sc zX$4+-@vHr%yY-lH2opy~^VMg}d6?TgN_UPnMhWP*cU5#vyHa#)%SnYims>k ze|ADo+y5~tx>2g6D}d)m+l%^y9>M>hsoEm`R}DioQvAOQ`V#$L>nKaCgAjofXP2n6 zHj#hY3n42qTnCzB_vI%!l%J+9Kd}aW4m4zsp)9gSCsg@t_&+}>T1q}}L*Rn1J@Q9D zJuLZ>v>Fv2#AjW^!)pI76_nRDxyjz;vxq@FQ&zCJEk&Nrl%#g{NL7@(6bhu2Qc5YM Ql+u&w|Ep>oGyqTl0OR9~z5oCK diff --git a/codeception/_data/plugins/Horizon-1.0.1/Entity/CartTrait.php b/codeception/_data/plugins/Horizon-1.0.1/Entity/CartTrait.php new file mode 100644 index 00000000000..a0fd332de0e --- /dev/null +++ b/codeception/_data/plugins/Horizon-1.0.1/Entity/CartTrait.php @@ -0,0 +1,26 @@ +get('doctrine.orm.entity_manager'); + + $horizon = new Dash(); + $horizon->id = 0; + $horizon->name = 'Horizon'; + + $entityManager->persist($horizon); + $entityManager->flush($horizon); + } + + public function enable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Enable Horizon 1.0.1".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Dash::class, 1); + } + + public function disable(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Disable Horizon 1.0.1".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Dash::class, 1); + } + + public function update(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Update Horizon 1.0.1".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Dash::class, 1); + /** @var EntityManager $entityManager */ + $entityManager = $container->get('doctrine.orm.entity_manager'); + + $newHorizon = new Dash(); + $newHorizon->name = 'New Horizon'; + + $entityManager->persist($newHorizon); + $entityManager->flush($newHorizon); + } + + public function uninstall(array $config, ContainerInterface $container) { + echo "*******************************************".PHP_EOL; + echo "Uninstall Horizon 1.0.1".PHP_EOL; + echo "*******************************************".PHP_EOL; + $entityManager = $container->get('doctrine.orm.entity_manager'); + $entityManager->find(Dash::class, 1); + } +} diff --git a/codeception/_data/plugins/Horizon-1.0.1/Repository/DashRepository.php b/codeception/_data/plugins/Horizon-1.0.1/Repository/DashRepository.php new file mode 100644 index 00000000000..3c8ae760fdd --- /dev/null +++ b/codeception/_data/plugins/Horizon-1.0.1/Repository/DashRepository.php @@ -0,0 +1,26 @@ +J}-un;ryv>}5}0dQf`wr1;+q*nh*xra>397k823`&}|K?-3^R=H+2H+gD+% zirpxmO!HC|_Ny|_2Ac!`QV23|S4cZI`X>PAj8M)U5X^NXBS2lj<$%mKx{E)k%PK6) zR>sLuUWMcESw60Rm-qUmQt37CS^p@qoy~3@bxEDXfuNK#5T39&kV%zHR6rf>a>tQe z*wPaq!4s=!bZsHp!!@dvMy=_{Fxq#pcO zD5Hx!m%6uAFvcP0s24VLDV{+vL4*lTgOCKTBHX83DGzkol+K25l4)BBto^#AQ7cO9EXB=45Nw3Ci0ZO1E8|Il0O{|V(c_3w6o z9>QB2!GG|`_5a=XcBMT}B@X@+YaPtQh`Kt5Gh8FSYICeW8DUF}2pSOk3q58`nB9SI@gg}jQjIF~ z@2PlyddM<3K5kNUjGi^E9Q6lgHr)O<$o+n&{YA#t3)}gWj{1wwL8eA>>YMl3cwsnb z(y~6!vlLy_Ds{s}7upWvXf{psm2N-UI_`Qw-4@d z{v(w6F%g7C90#Dw!^U5zepk2u&F=rL{)13(xc~2irSfV1s z5n%BD`(RW5&oB*{@I`EIXfY23`2WLZN&j=zZ+#=Uv;SY{U+|EC|KA7e*1y{bx_jM2 z`ndD^?|l6!2?@Oa?uGmN|A4R{hV%b{vrhlpQGLf}-hW;34gF&tVtD`E2bVI>3lQ<6 zW%>Otbx-G&)c$W(p|;q^2Jv6accy zG_#U7D^<)@Icw0hcTzSn<+jL${4(uI+j!ri)7I!DQ+7dI;MLXtmHPPENWSY^)9a?X zbiw1Ua$1b!O83qXqJ;ne000000000000000000000000000000JO=&&QfZ;I08jt` DlyM51 diff --git a/codeception/_data/plugins/Template-1.0.0/Controller/Controller.php b/codeception/_data/plugins/Template-1.0.0/Controller/Controller.php new file mode 100644 index 00000000000..a7e91626623 --- /dev/null +++ b/codeception/_data/plugins/Template-1.0.0/Controller/Controller.php @@ -0,0 +1,30 @@ +perform(); }); } + + public function compressPlugin($pluginDirName, $destDir) + { + $archiveName = $pluginDirName.'.tgz'; + $tgzPath = $destDir.'/'.$archiveName; + if (file_exists($tgzPath)) { + $this->comment("deleted."); + unlink($tgzPath); + } + $tarPath = $destDir.'/'.$pluginDirName.'.tar'; + $phar = new \PharData($tarPath); + $published = $phar->buildFromDirectory(codecept_data_dir('plugins/'.$pluginDirName)); + $phar->compress(\Phar::GZ, '.tgz'); + unlink($tarPath); + return $published; + } } diff --git a/codeception/_support/Page/Admin/PluginLocalInstallPage.php b/codeception/_support/Page/Admin/PluginLocalInstallPage.php index 5d1b26c87bb..2db45f86714 100644 --- a/codeception/_support/Page/Admin/PluginLocalInstallPage.php +++ b/codeception/_support/Page/Admin/PluginLocalInstallPage.php @@ -23,13 +23,14 @@ public static function go($I) } /** - * @param $fileName + * @param $pluginDirName * * @return PluginManagePage */ - public function アップロード($fileName) + public function アップロード($pluginDirName) { - $this->tester->attachFile(['id' => 'plugin_local_install_plugin_archive'], $fileName); + $this->tester->compressPlugin($pluginDirName, codecept_data_dir('plugins')); + $this->tester->attachFile(['id' => 'plugin_local_install_plugin_archive'], 'plugins/'.$pluginDirName.'.tgz'); $this->tester->click(['css' => '#upload-form > div > div > div > div > div.card-body > div > div > button']); return PluginManagePage::at($this->tester); diff --git a/codeception/_support/Page/Admin/PluginManagePage.php b/codeception/_support/Page/Admin/PluginManagePage.php index 24e4a68cef8..cedad5e1ac9 100644 --- a/codeception/_support/Page/Admin/PluginManagePage.php +++ b/codeception/_support/Page/Admin/PluginManagePage.php @@ -128,9 +128,10 @@ public function 独自プラグイン_削除($pluginCode) return $this; } - public function 独自プラグイン_アップデート($pluginCode, $fileName) + public function 独自プラグイン_アップデート($pluginCode, $pluginDirName) { - $this->tester->attachFile(['xpath' => $this->独自プラグイン_セレクタ($pluginCode).'/../td[5]//input[@type="file"]'], $fileName); + $this->tester->compressPlugin($pluginDirName, codecept_data_dir('plugins')); + $this->tester->attachFile(['xpath' => $this->独自プラグイン_セレクタ($pluginCode).'/../td[5]//input[@type="file"]'], 'plugins/'.$pluginDirName.'.tgz'); $this->tester->click(['xpath' => $this->独自プラグイン_セレクタ($pluginCode).'/../td[5]//button']); $this->tester->see('アップデートしました。', self::完了メーッセージ); diff --git a/codeception/acceptance/EA10PluginCest.php b/codeception/acceptance/EA10PluginCest.php index 34eb0d428be..d55b987cfc6 100644 --- a/codeception/acceptance/EA10PluginCest.php +++ b/codeception/acceptance/EA10PluginCest.php @@ -220,15 +220,13 @@ public function test_install_disable_disable(AcceptanceTester $I) public function test_install_assets_local(AcceptanceTester $I) { - $this->publishPlugin('Assets-1.0.0.tgz'); - $assetsPath = $this->config['plugin_html_realdir'].'/Assets/assets/assets.js'; $updatedPath = $this->config['plugin_html_realdir'].'/Assets/assets/updated.js'; $I->assertFileNotExists($assetsPath); $I->assertFileNotExists($updatedPath); - $ManagePage = PluginLocalInstallPage::go($I)->アップロード('plugins/Assets-1.0.0.tgz'); + $ManagePage = PluginLocalInstallPage::go($I)->アップロード('Assets-1.0.0'); $I->assertFileExists($assetsPath); $I->assertFileNotExists($updatedPath); @@ -240,7 +238,7 @@ public function test_install_assets_local(AcceptanceTester $I) $I->assertFileExists($assetsPath); $I->assertFileNotExists($updatedPath); - $ManagePage->独自プラグイン_アップデート('Assets', 'plugins/Assets-1.0.1.tgz'); + $ManagePage->独自プラグイン_アップデート('Assets', 'Assets-1.0.1'); $I->assertFileExists($assetsPath); $I->assertFileExists($updatedPath); @@ -252,7 +250,7 @@ public function test_install_assets_local(AcceptanceTester $I) public function test_install_assets_store(AcceptanceTester $I) { // 最初のバージョンを作成 - $this->publishPlugin('Assets-1.0.0.tgz'); + $I->compressPlugin('Assets-1.0.0', codecept_root_dir('repos')); $assetsPath = $this->config['plugin_html_realdir'].'/Assets/assets/assets.js'; $updatedPath = $this->config['plugin_html_realdir'].'/Assets/assets/updated.js'; @@ -274,7 +272,7 @@ public function test_install_assets_store(AcceptanceTester $I) $I->assertFileNotExists($updatedPath); // 新しいバージョンを作成 - $this->publishPlugin('Assets-1.0.1.tgz'); + $I->compressPlugin('Assets-1.0.1', codecept_root_dir('repos')); $I->reloadPage(); $ManagePage->ストアプラグイン_アップデート('Assets')->アップデート(); @@ -408,7 +406,7 @@ public function test_dependency_plugin_update(AcceptanceTester $I) public function test_install_error(AcceptanceTester $I) { - $this->publishPlugin('InstallError.tgz'); + $I->compressPlugin('InstallError', codecept_root_dir('repos')); $Horizon = Horizon_Store::start($I); PluginSearchPage::go($I) @@ -492,11 +490,6 @@ public function test_bundle_install_update_enable_disable_remove_store(Acceptanc ->無効化() ->削除(); } - - private function publishPlugin($fileName) - { - copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); - } } abstract class Abstract_Plugin @@ -773,8 +766,8 @@ public function アップデート() protected function publishPlugin($fileName) { - $published = copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); - $this->I->assertTrue($published, "公開できた ${fileName}"); + $dirname = str_replace('.tgz', '', $fileName); + $this->I->assertTrue(!!$this->I->compressPlugin($dirname, codecept_root_dir().'repos'), "公開できた ${fileName}"); } } @@ -798,7 +791,7 @@ public function __construct(AcceptanceTester $I, $code) public function インストール() { $this->ManagePage = PluginLocalInstallPage::go($this->I) - ->アップロード('plugins/'.$this->code.'-1.0.0.tgz'); + ->アップロード($this->code.'-1.0.0'); $this->initialized = true; @@ -863,7 +856,7 @@ public function 削除() public function アップデート() { - $this->ManagePage->独自プラグイン_アップデート($this->code, 'plugins/'.$this->code.'-1.0.1.tgz'); + $this->ManagePage->独自プラグイン_アップデート($this->code, $this->code.'-1.0.1'); $this->検証(); @@ -958,7 +951,6 @@ class Emperor_Store extends Store_Plugin public function __construct(AcceptanceTester $I, Store_Plugin $dependency = null) { parent::__construct($I, 'Emperor', $dependency); - $this->publishPlugin('Horizon-1.0.0.tgz'); $this->tables[] = 'dtb_foo'; $this->columns[] = 'dtb_cart.foo_id'; $this->traits['\Plugin\Emperor\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';