Completed
Push — 4.0 ( 103006...239d44 )
by Ryo
05:55
created

PluginSearchPage::go()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Page\Admin;
15
16
class PluginSearchPage extends AbstractAdminPageStyleGuide
17
{
18
    public function __construct(\AcceptanceTester $I)
19
    {
20
        parent::__construct($I);
21
    }
22
23
    public static function go($I)
24
    {
25
        $page = new self($I);
26
27
        return $page->goPage('/store/plugin/api/search', 'プラグインを探すオーナーズストア');
28
    }
29
30
    /**
31
     * @param $pluginCode
32
     *
33
     * @return PluginStoreInstallPage
34
     */
35
    public function 入手する($pluginCode)
36
    {
37
        $this->tester->click(['xpath' => '//*[@id="plugin-list"]//a[@data-code="'.$pluginCode.'"]/parent::node()/parent::node()/div[3]/form/a[contains(text(), "入手する")]']);
38
39
        return PluginStoreInstallPage::at($this->tester);
40
    }
41
}
42