Completed
Push — master ( 020913...419e60 )
by
unknown
11:23
created

Contacts::massDelete()   B

Complexity

Conditions 3
Paths 3

Size

Total Lines 30
Code Lines 26

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 30
rs 8.8571
cc 3
eloc 26
nc 3
nop 0
1
<?php
2
3
namespace OroCRM\Bundle\ContactBundle\Tests\Selenium\Pages;
4
5
use Oro\Bundle\TestFrameworkBundle\Pages\AbstractPageFilteredGrid;
6
7
/**
8
 * Class Contacts
9
 *
10
 * @package OroCRM\Bundle\ContactBundle\Tests\Selenium\Pages
11
 * @method Contacts openContacts(string $bundlepath)
12
 * @method Contact add()
13
 * @method Contact open(array $filter)
14
 * {@inheritdoc}
15
 */
16
class Contacts extends AbstractPageFilteredGrid
17
{
18
    const NEW_ENTITY_BUTTON = "//a[@title='Create Contact']";
19
    const URL = 'contact';
20
21
    public function entityNew()
22
    {
23
        $contact = new Contact($this->test);
24
        return $contact->init();
25
    }
26
27
    public function entityView()
28
    {
29
        return new Contact($this->test);
30
    }
31
}
32