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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
47705f0b
Commit
47705f0b
authored
Nov 24, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected assertations for test on #1310
parent
b6b26898
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
ActiveRecordTestTrait.php
tests/unit/framework/ar/ActiveRecordTestTrait.php
+6
-4
ActiveRecordTest.php
tests/unit/framework/redis/ActiveRecordTest.php
+9
-0
No files found.
tests/unit/framework/ar/ActiveRecordTestTrait.php
View file @
47705f0b
...
@@ -428,10 +428,11 @@ trait ActiveRecordTestTrait
...
@@ -428,10 +428,11 @@ trait ActiveRecordTestTrait
$this
->
assertEquals
(
3
,
$order
->
itemsInOrder1
[
1
]
->
id
);
$this
->
assertEquals
(
3
,
$order
->
itemsInOrder1
[
1
]
->
id
);
$this
->
assertEquals
(
4
,
$order
->
itemsInOrder1
[
2
]
->
id
);
$this
->
assertEquals
(
4
,
$order
->
itemsInOrder1
[
2
]
->
id
);
$order
=
$orders
[
3
];
$order
=
$orders
[
2
];
$this
->
assertEquals
(
3
,
$order
->
id
);
$this
->
assertEquals
(
3
,
$order
->
id
);
$this
->
assertTrue
(
$order
->
isRelationPopulated
(
'itemsInOrder1'
));
$this
->
assertTrue
(
$order
->
isRelationPopulated
(
'itemsInOrder1'
));
$this
->
assertEquals
(
0
,
count
(
$order
->
itemsInOrder1
));
$this
->
assertEquals
(
1
,
count
(
$order
->
itemsInOrder1
));
$this
->
assertEquals
(
2
,
$order
->
itemsInOrder1
[
0
]
->
id
);
}
}
// different order in via table
// different order in via table
...
@@ -455,10 +456,11 @@ trait ActiveRecordTestTrait
...
@@ -455,10 +456,11 @@ trait ActiveRecordTestTrait
$this
->
assertEquals
(
3
,
$order
->
itemsInOrder2
[
1
]
->
id
);
$this
->
assertEquals
(
3
,
$order
->
itemsInOrder2
[
1
]
->
id
);
$this
->
assertEquals
(
4
,
$order
->
itemsInOrder2
[
2
]
->
id
);
$this
->
assertEquals
(
4
,
$order
->
itemsInOrder2
[
2
]
->
id
);
$order
=
$orders
[
3
];
$order
=
$orders
[
2
];
$this
->
assertEquals
(
3
,
$order
->
id
);
$this
->
assertEquals
(
3
,
$order
->
id
);
$this
->
assertTrue
(
$order
->
isRelationPopulated
(
'itemsInOrder2'
));
$this
->
assertTrue
(
$order
->
isRelationPopulated
(
'itemsInOrder2'
));
$this
->
assertEquals
(
0
,
count
(
$order
->
itemsInOrder2
));
$this
->
assertEquals
(
1
,
count
(
$order
->
itemsInOrder2
));
$this
->
assertEquals
(
2
,
$order
->
itemsInOrder2
[
0
]
->
id
);
}
}
public
function
testLink
()
public
function
testLink
()
...
...
tests/unit/framework/redis/ActiveRecordTest.php
View file @
47705f0b
...
@@ -105,6 +105,15 @@ class ActiveRecordTest extends RedisTestCase
...
@@ -105,6 +105,15 @@ class ActiveRecordTest extends RedisTestCase
$this
->
markTestSkipped
(
'Redis does not store/find boolean values correctly.'
);
$this
->
markTestSkipped
(
'Redis does not store/find boolean values correctly.'
);
}
}
public
function
testFindEagerViaRelationPreserveOrder
()
{
$this
->
markTestSkipped
(
'Redis does not support orderBy.'
);
}
public
function
testFindEagerViaRelationPreserveOrderB
()
{
$this
->
markTestSkipped
(
'Redis does not support orderBy.'
);
}
public
function
testSatisticalFind
()
public
function
testSatisticalFind
()
{
{
...
...
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