Skip to content

Commit

Permalink
fix: add missing )
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasnorre committed Jan 16, 2025
1 parent 51be0a2 commit e7f55e0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/Integration/Maker/MakeFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,15 @@ public function can_create_factory_in_test_dir_with_nested_factory_already_creat
}

$tester = $this->makeFactoryCommandTester();
$tester->execute(['class' => Contact::class, '--test' => true]);

$tester->execute(['class' => Contact::class, '--test' => true]);

$this->assertFileExists(self::tempFile('tests/Factory/ContactFactory.php'));
$this->assertFileExists(self::tempFile('tests/Factory/AddressFactory.php'));

// here, we're faking multiple calls to `bin/console make:factory`
// so it's perfectly acceptable to manually load the newly created class
require_once self::tempFile('tests/Factory/AddressFactory.php';

require_once self::tempFile('tests/Factory/AddressFactory.php');
$tester->execute(['class' => Address::class, '--test' => true]);
}

Expand Down

0 comments on commit e7f55e0

Please sign in to comment.