WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 224bce2

Browse files
authored
Merge branch '4.3' into dependabot/npm_and_yarn/webpack-cli-5.1.4
2 parents 302e383 + 44cfdbf commit 224bce2

File tree

231 files changed

+1748
-1492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+1748
-1492
lines changed

codeception/_data/plugins/Bundle-1.0.0/Resource/config/bundles.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14+
use League\Bundle\OAuth2ServerBundle\LeagueOAuth2ServerBundle;
15+
use Plugin\Bundle\Bundle\BundleBundle;
16+
17+
/*
18+
* This file is part of EC-CUBE
19+
*
20+
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
21+
*
22+
* http://www.ec-cube.co.jp/
23+
*
24+
* For the full copyright and license information, please view the LICENSE
25+
* file that was distributed with this source code.
26+
*/
1427
return [
15-
Plugin\Bundle\Bundle\BundleBundle::class => ['all' => true],
16-
League\Bundle\OAuth2ServerBundle\LeagueOAuth2ServerBundle::class => ['all' => true]
28+
BundleBundle::class => ['all' => true],
29+
LeagueOAuth2ServerBundle::class => ['all' => true],
1730
];

codeception/_data/plugins/Bundle-1.0.1/Resource/config/bundles.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14+
use League\Bundle\OAuth2ServerBundle\LeagueOAuth2ServerBundle;
15+
use Plugin\Bundle\Bundle\BundleBundle;
16+
17+
/*
18+
* This file is part of EC-CUBE
19+
*
20+
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
21+
*
22+
* http://www.ec-cube.co.jp/
23+
*
24+
* For the full copyright and license information, please view the LICENSE
25+
* file that was distributed with this source code.
26+
*/
1427
return [
15-
Plugin\Bundle\Bundle\BundleBundle::class => ['all' => true],
16-
League\Bundle\OAuth2ServerBundle\LeagueOAuth2ServerBundle::class => ['all' => true]
28+
BundleBundle::class => ['all' => true],
29+
LeagueOAuth2ServerBundle::class => ['all' => true],
1730
];

codeception/_support/AcceptanceTester.php

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14+
use _generated\AcceptanceTesterActions;
15+
use Codeception\Actor;
16+
use Codeception\Lib\Friend;
1417
use Codeception\Scenario;
18+
use Codeception\Step\Action;
19+
use Codeception\Step\Assertion;
20+
use Codeception\Step\Condition;
1521
use Codeception\Util\Fixtures;
1622
use Eccube\Common\Constant;
23+
use Facebook\WebDriver\Remote\RemoteWebDriver;
1724
use Facebook\WebDriver\WebDriverBy;
1825
use Interactions\DragAndDropBy;
1926
use Symfony\Component\Filesystem\Exception\FileNotFoundException;
@@ -30,13 +37,13 @@
3037
* @method void am($role)
3138
* @method void lookForwardTo($achieveValue)
3239
* @method void comment($description)
33-
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
40+
* @method Friend haveFriend($name, $actorClass = null)
3441
*
3542
* @SuppressWarnings(PHPMD)
3643
*/
37-
class AcceptanceTester extends Codeception\Actor
44+
class AcceptanceTester extends Actor
3845
{
39-
use _generated\AcceptanceTesterActions;
46+
use AcceptanceTesterActions;
4047

4148
public function getScenario(): Scenario
4249
{
@@ -225,7 +232,7 @@ public function dontSeeElements($arrayOfSelector)
225232

226233
public function dragAndDropBy($selector, $x_offset, $y_offset)
227234
{
228-
$this->executeInSelenium(function (Facebook\WebDriver\Remote\RemoteWebDriver $webDriver) use ($selector, $x_offset, $y_offset) {
235+
$this->executeInSelenium(function (RemoteWebDriver $webDriver) use ($selector, $x_offset, $y_offset) {
229236
$node = $webDriver->findElement(WebDriverBy::cssSelector($selector));
230237
$action = new DragAndDropBy($webDriver, $node, $x_offset, $y_offset);
231238
$action->perform();
@@ -257,7 +264,7 @@ public function compressPlugin($pluginDirName, $destDir)
257264
public function see($text, $selector = null): void
258265
{
259266
$this->wait(0.1); // XXX 画面遷移直後は selector の参照に失敗するため wait を入れる
260-
$this->getScenario()->runStep(new Codeception\Step\Assertion('see', func_get_args()));
267+
$this->getScenario()->runStep(new Assertion('see', func_get_args()));
261268
}
262269

263270
/**
@@ -268,7 +275,7 @@ public function see($text, $selector = null): void
268275
public function seeInField($field, $value): void
269276
{
270277
$this->wait(0.1); // XXX 画面遷移直後は selector の参照に失敗するため wait を入れる
271-
$this->getScenario()->runStep(new Codeception\Step\Assertion('seeInField', func_get_args()));
278+
$this->getScenario()->runStep(new Assertion('seeInField', func_get_args()));
272279
}
273280

274281
/**
@@ -279,7 +286,7 @@ public function seeInField($field, $value): void
279286
public function waitForText(string $text, int $timeout = 10, $selector = null): void
280287
{
281288
$this->wait(0.1); // XXX 画面遷移直後は selector の参照に失敗するため wait を入れる
282-
$this->getScenario()->runStep(new Codeception\Step\Action('waitForText', func_get_args()));
289+
$this->getScenario()->runStep(new Action('waitForText', func_get_args()));
283290
}
284291

285292
/**
@@ -290,7 +297,20 @@ public function waitForText(string $text, int $timeout = 10, $selector = null):
290297
public function amOnPage($page): void
291298
{
292299
$this->wait(1); // XXX WebDriver::amOnPage() の前に wait を入れないと画面遷移しない場合がある
293-
$this->getScenario()->runStep(new Codeception\Step\Condition('amOnPage', func_get_args()));
300+
$this->getScenario()->runStep(new Condition('amOnPage', func_get_args()));
294301
$this->wait(1); // XXX 画面遷移直後は selector の参照に失敗する場合があるため wait を入れる
295302
}
303+
304+
/**
305+
* AcceptanceTesterActions から移植
306+
*
307+
* @param string|array $link
308+
*
309+
* @see \Codeception\Module\WebDriver::click()
310+
*/
311+
public function click($link, $context = null): void
312+
{
313+
$this->getScenario()->runStep(new Action('click', func_get_args()));
314+
$this->wait(1); // XXX click 直後は selector の参照に失敗するため wait を入れる
315+
}
296316
}

codeception/_support/FunctionalTester.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,22 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
class FunctionalTester extends \Codeception\Actor
14+
use _generated\FunctionalTesterActions;
15+
use Codeception\Actor;
16+
17+
/*
18+
* This file is part of EC-CUBE
19+
*
20+
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
21+
*
22+
* http://www.ec-cube.co.jp/
23+
*
24+
* For the full copyright and license information, please view the LICENSE
25+
* file that was distributed with this source code.
26+
*/
27+
class FunctionalTester extends Actor
1528
{
16-
use _generated\FunctionalTesterActions;
29+
use FunctionalTesterActions;
1730

1831
/*
1932
* Define custom actions here

codeception/_support/Helper/Acceptance.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313

1414
namespace Helper;
1515

16+
use Codeception\Module;
17+
1618
// here you can define custom actions
1719
// all public methods declared in helper class will be available in $I
18-
19-
class Acceptance extends \Codeception\Module
20+
class Acceptance extends Module
2021
{
2122
public function _initialize()
2223
{

codeception/_support/Helper/Functional.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313

1414
namespace Helper;
1515

16+
use Codeception\Module;
17+
1618
// here you can define custom actions
1719
// all public methods declared in helper class will be available in $I
18-
19-
class Functional extends \Codeception\Module
20+
class Functional extends Module
2021
{
2122
}

codeception/_support/Helper/Unit.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313

1414
namespace Helper;
1515

16+
use Codeception\Module;
17+
1618
// here you can define custom actions
1719
// all public methods declared in helper class will be available in $I
18-
19-
class Unit extends \Codeception\Module
20+
class Unit extends Module
2021
{
2122
}

codeception/_support/Interactions/DragAndDropBy.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
use Facebook\WebDriver\Interactions\Internal\WebDriverClickAndHoldAction;
1818
use Facebook\WebDriver\Interactions\Internal\WebDriverMoveToOffsetAction;
1919
use Facebook\WebDriver\Interactions\WebDriverActions;
20+
use Facebook\WebDriver\Remote\RemoteWebElement;
2021
use Facebook\WebDriver\WebDriver;
2122

2223
class DragAndDropBy extends WebDriverActions
2324
{
2425
/**
25-
* @param \Facebook\WebDriver\Remote\RemoteWebElement $source
26+
* @param RemoteWebElement $source
2627
*/
2728
public function __construct(WebDriver $driver, $source, $x_offset, $y_offset)
2829
{

codeception/_support/Page/Admin/CustomerManagePage.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,6 @@ public function 一覧_仮会員メール再送($rowNum, $execute = true)
132132
return $this;
133133
}
134134

135-
private function 一覧_メニュー($rowNum)
136-
{
137-
$this->tester->click("#search_form > div.row > div > div > div.box-body > div.table_list > div > table > tbody > tr:nth-child({$rowNum}) > td.icon_edit > div > a");
138-
139-
return $this;
140-
}
141-
142135
public function CSVダウンロード()
143136
{
144137
$this->tester->click('#search_form > div.c-contentsArea__cols > div > div > div.row.justify-content-between.mb-2 > div.col-5.text-end > div:nth-child(2) > div > a:nth-child(1)');

codeception/_support/Page/Admin/ShopSettingPage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ public function 設定_在庫切れ商品の非表示($value)
111111
$this->登録();
112112
$this->tester->see('保存しました', ShopSettingPage::$登録完了メッセージ);
113113
}
114-
$checked = $this->tester->grabAttributeFrom('#shop_master_option_nostock_hidden', 'checked');
114+
$this->tester->grabAttributeFrom('#shop_master_option_nostock_hidden', 'checked');
115115

116116
return $this;
117117
}
118+
118119
public function 入力_GAタグ($value)
119120
{
120121
$this->tester->fillField(['id' => 'shop_master_ga_id'], $value);

0 commit comments

Comments
 (0)