mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2884 from TomSpeak/patch-2
DOC: SapphireTest `objFromFixture`
This commit is contained in:
commit
d7a8b0fca4
@ -403,8 +403,10 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
|||||||
/**
|
/**
|
||||||
* Get an object from the fixture.
|
* Get an object from the fixture.
|
||||||
*
|
*
|
||||||
* @param $className The data class, as specified in your fixture file. Parent classes won't work
|
* @param string $className The data class, as specified in your fixture file. Parent classes won't work
|
||||||
* @param $identifier The identifier string, as provided in your fixture file
|
* @param string $identifier The identifier string, as provided in your fixture file
|
||||||
|
*
|
||||||
|
* @return DataObject
|
||||||
*/
|
*/
|
||||||
protected function objFromFixture($className, $identifier) {
|
protected function objFromFixture($className, $identifier) {
|
||||||
$obj = $this->getFixtureFactory()->get($className, $identifier);
|
$obj = $this->getFixtureFactory()->get($className, $identifier);
|
||||||
|
Loading…
Reference in New Issue
Block a user