Commit 0a9101d7 authored by beberlei's avatar beberlei

[2.0] Fixed failing tests due to r7323

parent 6bcaafe1
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment