Completed
Push — staging ( d71a8f...4368fa )
by Woeler
41s queued 32s
created

testIsMineSearchCommandDoesntCauseExceptionDueToBadDQL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * @copyright   2017 Mautic Contributors. All rights reserved
5
 * @author      Mautic, Inc.
6
 *
7
 * @link        https://mautic.org
8
 *
9
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
 */
11
12
namespace Mautic\CoreBundle\Tests\Functional\Entity;
13
14
use Mautic\CoreBundle\Test\MauticMysqlTestCase;
15
16
class CommonRepositoryTest extends MauticMysqlTestCase
17
{
18
    /**
19
     * @testdox Test that is:mine does not throw an exception due to bad DQL
20
     */
21
    public function testIsMineSearchCommandDoesntCauseExceptionDueToBadDQL()
22
    {
23
        $this->client->request('GET', 's/contacts?search=is:mine');
24
25
        $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
26
        $this->assertContains('is:mine', $this->client->getResponse()->getContent());
27
    }
28
}
29