Skip to content

Commit

Permalink
Merge branch '1.3' into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jan 31, 2019
2 parents 4792b4e + f9763bb commit fa931ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/php/GraphQL/Extensions/ReadOneExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
use SilverStripe\GraphQL\Manager;
use SilverStripe\GraphQL\Scaffolding\Scaffolders\CRUD\ReadOne;
use SilverStripe\GraphQL\Scaffolding\StaticSchema;
use SilverStripe\Security\Member;
use SilverStripe\Security\Security;
use SilverStripe\Versioned\GraphQL\Types\VersionedInputType;
use SilverStripe\Versioned\Tests\GraphQL\Fake\Fake;
use SilverStripe\Versioned\Versioned;

class ReadOneExtensionTest extends SapphireTest
{
protected $usesDatabase = true;

public static $extra_dataobjects = [
Fake::class,
];
Expand All @@ -42,7 +44,7 @@ public function testReadOneExtensionAppliesFilters()
return $readScaffold['resolve'](
null,
$args,
['currentUser' => new Member()],
['currentUser' => Security::getCurrentUser()],
new ResolveInfo([])
);
};
Expand Down

0 comments on commit fa931ec

Please sign in to comment.