mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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…
x
Reference in New Issue
Block a user