Completed
Push — master ( 9bcebd...3fadc2 )
by Dmitry
04:15
created

XEditable::setValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace hipanel\tests\_support\Page\Widget\Input;
4
5
/**
6
 * Class XEditable
7
 *
8
 * Represent XEditable input element.
9
 * @package hipanel\tests\_support\Page\Widget\Input
10
 */
11
class XEditable extends TestableInput
12
{
13
    /**
14
     * @param string $value
15
     */
16
    public function setValue(string $value): void
17
    {
18
        $this->tester->click("$this->selector a.editable");
19
        (new Input($this->tester, "$this->selector div.editable-input input"))
20
            ->setValue($value);
21
        $this->tester->click("$this->selector button[type=submit]");
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    protected function getSearchSelector(): string
28
    {
29
        // TODO: Implement getSearchSelector() method.
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    protected function getFilterSelector(): string
36
    {
37
        // TODO: Implement getFilterSelector() method.
38
    }
39
}
40
41