Code Duplication    Length = 7-9 lines in 5 locations

src/OroCRM/Bundle/SalesBundle/Tests/Selenium/Pages/SalesFunnel.php 1 location

@@ 23-31 (lines=9) @@
20
21
    protected $owner = "//div[starts-with(@id,'s2id_oro_workflow_transition_sales_funnel_owner')]/a";
22
23
    public function setStartDate($date)
24
    {
25
        $this->startDate = $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_sales_funnel_start_date']/..".
26
            "/following-sibling::input[contains(@class,'datepicker-input')]");
27
        $this->startDate->clear();
28
        $this->startDate->value($date);
29
30
        return $this;
31
    }
32
33
    public function setLead($lead)
34
    {

src/OroCRM/Bundle/SalesBundle/Tests/Selenium/Pages/Workflow.php 3 locations

@@ 57-64 (lines=8) @@
54
        return $this;
55
    }
56
57
    public function setBudget($budget)
58
    {
59
        $this->budget = $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_budget_amount']");
60
        $this->budget->clear();
61
        $this->budget->value($budget);
62
63
        return $this;
64
    }
65
66
    public function getBudget()
67
    {
@@ 71-78 (lines=8) @@
68
        return $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_budget_amount']")->value();
69
    }
70
71
    public function setProbability($probability)
72
    {
73
        $this->probability = $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_probability']");
74
        $this->probability->clear();
75
        $this->probability->value($probability);
76
77
        return $this;
78
    }
79
80
    public function getProbability()
81
    {
@@ 99-106 (lines=8) @@
96
        return $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_customer_need']")->value();
97
    }
98
99
    public function setSolution($solution)
100
    {
101
        $this->solution = $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_proposed_solution']");
102
        $this->solution->clear();
103
        $this->solution->value($solution);
104
105
        return $this;
106
    }
107
108
    public function getSolution()
109
    {

src/OroCRM/Bundle/TaskBundle/Tests/Selenium/Pages/Task.php 1 location

@@ 35-41 (lines=7) @@
32
    /** @var  Workflow */
33
    protected $workflow;
34
35
    public function setSubject($subject)
36
    {
37
        $this->subject = $this->test->byXpath("//*[@data-ftid='orocrm_task_subject']");
38
        $this->subject->clear();
39
        $this->subject->value($subject);
40
        return $this;
41
    }
42
43
    public function getSubject()
44
    {