Update 02_FixtureFactories.md

- Removed duplicate `use SilverStripe\Core\Injector\Injector;`
- Changed $myPageObj to $MyObjectObj
This commit is contained in:
Tyler Trout 2020-02-17 16:49:52 -05:00 committed by GitHub
parent affd43052a
commit b7391fd34f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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"
}
}