Skip to content
Permalink
Browse files

Merge pull request #47 from ergebnis/fix/import

Fix: Avoid FQCNs
  • Loading branch information
localheinz committed Mar 15, 2020
2 parents dfa64a4 + fda7aa5 commit e09c2cb2b2dc00e64f6587e913b1b839806c9307
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/Unit/Definition/AbstractDefinitionTest.php
@@ -15,6 +15,7 @@

use Ergebnis\FactoryBot\Definition\AbstractDefinition;
use Ergebnis\FactoryBot\Definition\FakerAwareDefinition;
use Ergebnis\FactoryBot\Test\Fixture;
use Ergebnis\Test\Util\Helper;
use Faker\Generator;
use PHPUnit\Framework;
@@ -35,7 +36,7 @@ public function testImplementsFakerAwareDefinitionInterface(): void

public function testFakerThrowsBadMethodCallExceptionIfDefinitionHasNotBeenProvidedWithFaker(): void
{
$definition = new \Ergebnis\FactoryBot\Test\Fixture\Definition\Definitions\ExtendsAbstractDefinition\UserDefinition();
$definition = new Fixture\Definition\Definitions\ExtendsAbstractDefinition\UserDefinition();

$this->expectException(\BadMethodCallException::class);
$this->expectExceptionMessage(\sprintf(
@@ -50,7 +51,7 @@ public function testFakerReturnsFakerWhenProvidedWithIt(): void
{
$faker = new Generator();

$definition = new \Ergebnis\FactoryBot\Test\Fixture\Definition\Definitions\ExtendsAbstractDefinition\UserDefinition();
$definition = new Fixture\Definition\Definitions\ExtendsAbstractDefinition\UserDefinition();

$definition->provideWith($faker);

0 comments on commit e09c2cb

Please sign in to comment.
You can’t perform that action at this time.