Update 02_FixtureFactories.md
- Removed duplicate `use SilverStripe\Core\Injector\Injector;` - Changed $myPageObj to $MyObjectObj
This commit is contained in:
parent
affd43052a
commit
b7391fd34f
|
@ -14,7 +14,6 @@ with information that we need.
|
|||
|
||||
|
||||
```php
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
use SilverStripe\Dev\SapphireTest;
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
|
||||
|
@ -45,7 +44,7 @@ class MyObjectTest extends SapphireTest
|
|||
echo $MyObjectObj->MyProperty;
|
||||
// returns "My Default Value"
|
||||
|
||||
echo $myPageObj->MyOtherProperty;
|
||||
echo $MyObjectObj->MyOtherProperty;
|
||||
// returns "My Custom Value"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue