Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
napestershine committed Jun 28, 2020
1 parent 9e90bf6 commit 577a15f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"doctrine/doctrine-bundle": "^1.8 || ^2.0",
"doctrine/orm": "^2.5",
"doctrine/persistence": "^1.3.4",
"sonata-project/admin-bundle": "^3.68",
"sonata-project/admin-bundle": "^3.71",
"sonata-project/exporter": "^1.11.0 || ^2.0",
"sonata-project/form-extensions": "^0.1 || ^1.4",
"symfony/config": "^4.4",
Expand Down
16 changes: 0 additions & 16 deletions tests/Filter/StringFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ public function testStartsWith(): void
$filter->filter($builder, 'alias', 'field', ['value' => 'asd', 'type' => StringOperatorType::TYPE_STARTS_WITH]);
$this->assertSame(['alias.field LIKE :field_name_0'], $builder->query);
$this->assertSame(['field_name_0' => 'asd%'], $builder->parameters);

$builder = new ProxyQuery(new QueryBuilder());
$this->assertSame([], $builder->query);

$filter->filter($builder, 'alias', 'field', ['value' => 'asd', 'type' => null]);
$this->assertSame(['alias.field LIKE :field_name_0'], $builder->query);
$this->assertSame(['field_name_0' => 'asd%'], $builder->parameters);
$this->assertTrue($filter->isActive());
}

public function testEndsWith(): void
Expand All @@ -100,14 +92,6 @@ public function testEndsWith(): void
$filter->filter($builder, 'alias', 'field', ['value' => 'asd', 'type' => StringOperatorType::TYPE_ENDS_WITH]);
$this->assertSame(['alias.field LIKE :field_name_0'], $builder->query);
$this->assertSame(['field_name_0' => '%asd'], $builder->parameters);

$builder = new ProxyQuery(new QueryBuilder());
$this->assertSame([], $builder->query);

$filter->filter($builder, 'alias', 'field', ['value' => 'asd', 'type' => null]);
$this->assertSame(['alias.field LIKE :field_name_0'], $builder->query);
$this->assertSame(['field_name_0' => '%asd'], $builder->parameters);
$this->assertTrue($filter->isActive());
}

public function testNotContains(): void
Expand Down

0 comments on commit 577a15f

Please sign in to comment.