Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Tomáš Trávníček
doctrine-dbal
Commits
0a9101d7
Commit
0a9101d7
authored
Mar 14, 2010
by
beberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixed failing tests due to r7323
parent
6bcaafe1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ProxyClassGeneratorTest.php
tests/Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php
+5
-3
No files found.
tests/Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php
View file @
0a9101d7
...
...
@@ -60,7 +60,8 @@ class ProxyClassGeneratorTest extends \Doctrine\Tests\OrmTestCase
$persister
->
expects
(
$this
->
atLeastOnce
())
->
method
(
'load'
)
->
with
(
$this
->
equalTo
(
$identifier
),
$this
->
isInstanceOf
(
$proxyClass
));
->
with
(
$this
->
equalTo
(
$identifier
),
$this
->
isInstanceOf
(
$proxyClass
))
->
will
(
$this
->
returnValue
(
new
\stdClass
()));
// fake return of entity instance
$proxy
->
getDescription
();
}
...
...
@@ -74,7 +75,8 @@ class ProxyClassGeneratorTest extends \Doctrine\Tests\OrmTestCase
$proxy
=
$this
->
_proxyFactory
->
getProxy
(
'Doctrine\Tests\Models\ECommerce\ECommerceFeature'
,
$identifier
);
$persister
->
expects
(
$this
->
atLeastOnce
())
->
method
(
'load'
)
->
with
(
$this
->
equalTo
(
$identifier
),
$this
->
isInstanceOf
(
$proxyClass
));
->
with
(
$this
->
equalTo
(
$identifier
),
$this
->
isInstanceOf
(
$proxyClass
))
->
will
(
$this
->
returnValue
(
new
\stdClass
()));
// fake return of entity instance
$proxy
->
getId
();
$proxy
->
getDescription
();
}
...
...
@@ -142,7 +144,7 @@ class ProxyClassGeneratorTest extends \Doctrine\Tests\OrmTestCase
protected
function
_getMockPersister
()
{
$persister
=
$this
->
getMock
(
'Doctrine\ORM\Persisters\StandardEntityPersister'
,
array
(
'load'
),
array
(),
''
,
false
,
false
,
false
);
$persister
=
$this
->
getMock
(
'Doctrine\ORM\Persisters\StandardEntityPersister'
,
array
(
'load'
),
array
(),
''
,
false
);
return
$persister
;
}
}
...
...
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