Skip to content

Commit

Permalink
tests: minor updates to directories and factory
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Mar 1, 2024
1 parent 08e5804 commit ae7dd7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function definition()
$faker = $this->faker;
return
[
'username' => $faker->userName,
'username' => $faker->userName . time(),
'name' => $faker->firstName,
'surname' => $faker->lastName,
'email' => $faker->unique()->safeEmail,
Expand Down
5 changes: 5 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<coverage processUncoveredFiles="true">
<exclude>
<directory suffix=".php">./app/Extensions</directory>
<!-- Exclude the TelescopeServiceProvider -->
<directory suffix="TelescopeServiceProvider.php">./app/Providers</directory>
</exclude>
<include>
<directory suffix=".php">./app</directory>
Expand All @@ -29,5 +31,8 @@

<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>

<!-- Set the memory limit to be 128MB (prod has around 2x more) -->
<ini name="memory_limit" value="128M"/>
</php>
</phpunit>

0 comments on commit ae7dd7f

Please sign in to comment.