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
0003b10b
Commit
0003b10b
authored
Jun 02, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ElasticSearch tests fix
parent
8aee4759
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
ActiveRecordTest.php
tests/unit/extensions/elasticsearch/ActiveRecordTest.php
+9
-0
ActiveRecordTestTrait.php
tests/unit/framework/ar/ActiveRecordTestTrait.php
+2
-2
ActiveRecordTest.php
tests/unit/framework/db/ActiveRecordTest.php
+1
-1
No files found.
tests/unit/extensions/elasticsearch/ActiveRecordTest.php
View file @
0003b10b
...
...
@@ -40,6 +40,15 @@ class ActiveRecordTest extends ElasticSearchTestCase
return
OrderItem
::
className
();
}
public
function
getOrderWithNullFKClass
()
{
return
OrderWithNullFK
::
className
();
}
public
function
getOrderItemWithNullFKmClass
()
{
return
OrderItemWithNullFK
::
className
();
}
/**
* can be overridden to do things after save()
*/
...
...
tests/unit/framework/ar/ActiveRecordTestTrait.php
View file @
0003b10b
...
...
@@ -681,7 +681,7 @@ trait ActiveRecordTestTrait
/** @var \yii\db\ActiveRecordInterface $orderWithNullFKClass */
$orderWithNullFKClass
=
$this
->
getOrderWithNullFKClass
();
/** @var \yii\db\ActiveRecordInterface $orderItemsWithNullFKClass */
$orderItemsWithNullFKClass
=
$this
->
getOrderIteWithNullFKmClass
();
$orderItemsWithNullFKClass
=
$this
->
getOrderIte
m
WithNullFKmClass
();
...
...
@@ -732,7 +732,7 @@ trait ActiveRecordTestTrait
$orderWithNullFKClass
=
$this
->
getOrderWithNullFKClass
();
/** @var \yii\db\ActiveRecordInterface $orderItemsWithNullFKClass */
$orderItemsWithNullFKClass
=
$this
->
getOrderIteWithNullFKmClass
();
$orderItemsWithNullFKClass
=
$this
->
getOrderIte
m
WithNullFKmClass
();
/** @var TestCase|ActiveRecordTestTrait $this */
// has many with delete
...
...
tests/unit/framework/db/ActiveRecordTest.php
View file @
0003b10b
...
...
@@ -52,7 +52,7 @@ class ActiveRecordTest extends DatabaseTestCase
{
return
OrderWithNullFK
::
className
();
}
public
function
getOrderIteWithNullFKmClass
()
public
function
getOrderIte
m
WithNullFKmClass
()
{
return
OrderItemWithNullFK
::
className
();
}
...
...
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