Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
3ba9dcbe
Commit
3ba9dcbe
authored
Apr 02, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test break.
parent
2efb5aaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
QueryTest.php
tests/unit/extensions/elasticsearch/QueryTest.php
+1
-1
ActiveRecordTest.php
tests/unit/extensions/redis/ActiveRecordTest.php
+1
-1
No files found.
tests/unit/extensions/elasticsearch/QueryTest.php
View file @
3ba9dcbe
...
...
@@ -206,7 +206,7 @@ class QueryTest extends ElasticSearchTestCase
{
$query
=
new
Query
();
$query
->
filterWhere
([
'and'
,
[
'like'
,
'name'
,
''
],
[
'like'
,
'title'
,
''
],
[
'id'
=>
1
],
[
'not'
,
[
'like'
,
'name'
,
''
]]]);
$this
->
assertEquals
([
'
id'
=>
1
],
$query
->
where
);
$this
->
assertEquals
([
'
and'
,
[
'id'
=>
1
]
],
$query
->
where
);
}
// TODO test facets
...
...
tests/unit/extensions/redis/ActiveRecordTest.php
View file @
3ba9dcbe
...
...
@@ -296,6 +296,6 @@ class ActiveRecordTest extends RedisTestCase
{
$query
=
new
ActiveQuery
();
$query
->
filterWhere
([
'and'
,
[
'like'
,
'name'
,
''
],
[
'like'
,
'title'
,
''
],
[
'id'
=>
1
],
[
'not'
,
[
'like'
,
'name'
,
''
]]]);
$this
->
assertEquals
([
'
id'
=>
1
],
$query
->
where
);
$this
->
assertEquals
([
'
and'
,
[
'id'
=>
1
]
],
$query
->
where
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment