Skip to content

Commit

Permalink
Merge pull request #80 from mehdi-fathi/analysis-gO1Vnk
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
mehdi-fathi authored Jun 18, 2020
2 parents 8ac312a + 42da71a commit e28c06b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/Tests/ModelFilterMockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function testWhereByOpt()
$this->request->shouldReceive('query')->andReturn([
'count_posts' => [
'operator' => '>',
'value' => 35,
'value' => 35,
],
]);

Expand All @@ -130,7 +130,7 @@ public function testWhereBetween()
$this->request->shouldReceive('query')->andReturn([
'created_at' => [
'start' => '2019-01-01 17:11:46',
'end' => '2019-02-06 10:11:46',
'end' => '2019-02-06 10:11:46',
],
]);

Expand All @@ -154,7 +154,7 @@ public function testPaginate()
$this->request->shouldReceive('query')->andReturn([
'created_at' => [
'start' => '2019-01-01 17:11:46',
'end' => '2019-02-06 10:11:46',
'end' => '2019-02-06 10:11:46',
],
'page' => 5,
]);
Expand Down Expand Up @@ -260,7 +260,7 @@ public function testWhereHasRelationTwoNested()

$this->request->shouldReceive('query')->andReturn([
'foo.baz.bam' => 'qux',
'foo' => [
'foo' => [
'baz' => [
'bam' => 'qux',
],
Expand Down Expand Up @@ -393,9 +393,9 @@ public function testWhereIgnoreParam()

$this->request->shouldReceive('query')->andReturn(
[
'baz' => 'joo',
'baz' => 'joo',
'google_index' => true,
'is_payment' => true,
'is_payment' => true,
]
);

Expand All @@ -407,7 +407,6 @@ public function testWhereIgnoreParam()
$this->assertSame($users->toSql(), $builder->toSql());
$this->assertEquals(['joo'], $builder->getBindings());
$this->assertEquals(['joo'], $users->getBindings());

}

public function testFilterRequests()
Expand Down

0 comments on commit e28c06b

Please sign in to comment.