Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Feb 14, 2016
1 parent 757e3c8 commit 7043c67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/DoctrineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* This is doctrine test class.
*
* @author Michael Bodnarchuk <[email protected]>
* @author Graham Campbell <[email protected]>
*/
class DoctrineTest extends AbstractTestCase
{
Expand Down Expand Up @@ -120,7 +121,7 @@ public function testCatProperties()
public function testSavedObjects()
{
$reflection = new ReflectionClass(static::$fm);
$store = $reflection->getProperty('modelStore');
$store = $reflection->getProperty('store');
$store->setAccessible(true);
$value = $store->getValue(static::$fm);

Expand Down
2 changes: 1 addition & 1 deletion tests/EloquentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function testCatProperties()
public function testSavedObjects()
{
$reflection = new ReflectionClass(static::$fm);
$store = $reflection->getProperty('modelStore');
$store = $reflection->getProperty('store');
$store->setAccessible(true);
$value = $store->getValue(static::$fm);

Expand Down
4 changes: 2 additions & 2 deletions tests/SaveAndDeleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testShouldCreateAndDelete()
{
$obj = static::$fm->create('ModelThatWillSaveStub');
$reflection = new ReflectionClass(static::$fm);
$store = $reflection->getProperty('modelStore');
$store = $reflection->getProperty('store');
$store->setAccessible(true);
$value = $store->getValue(static::$fm);

Expand All @@ -45,7 +45,7 @@ public function testShouldNotSave()
{
$obj = static::$fm->instance('ModelThatWillSaveStub');
$reflection = new ReflectionClass(static::$fm);
$store = $reflection->getProperty('modelStore');
$store = $reflection->getProperty('store');
$store->setAccessible(true);
$value = $store->getValue(static::$fm);

Expand Down

0 comments on commit 7043c67

Please sign in to comment.