Skip to content

Commit 3effbb5

Browse files
committed
2 parents 3b6f273 + 8fff001 commit 3effbb5

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

phpunit.xml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="bootstrap/autoload.php" colors="true"
3-
convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true"
4-
processIsolation="false" stopOnFailure="false">
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="bootstrap/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false">
11+
<testsuites>
12+
<testsuite name="Feature Tests">
13+
<directory suffix="Test.php">./tests/Feature</directory>
14+
</testsuite>
15+
16+
<testsuite name="Unit Tests">
17+
<directory suffix="Test.php">./tests/Unit</directory>
18+
</testsuite>
19+
</testsuites>
520
<filter>
621
<whitelist processUncoveredFilesFromWhitelist="true">
7-
<directory suffix=".php">
8-
./app
9-
</directory>
22+
<directory suffix=".php">./app</directory>
1023
</whitelist>
1124
</filter>
1225
<php>
1326
<env name="APP_ENV" value="testing"/>
14-
<env name="CACHE_DRIVER" value="array"/>
1527
<env name="DB_CONNECTION" value="sqlite"/>
16-
<env name="ENABLE_REGISTRATION" value="true"/>
17-
<env name="QUEUE_DRIVER" value="sync"/>
18-
<env name="REGISTRATION_CAPTCHA_STATUS" value="false"/>
28+
<env name="DB_DATABASE" value=":memory:"/>
29+
<env name="CACHE_DRIVER" value="array"/>
1930
<env name="SESSION_DRIVER" value="array"/>
31+
<env name="QUEUE_DRIVER" value="sync"/>
32+
<env name="SCOUT_DRIVER" value="null"/>
2033
</php>
21-
<testsuites>
22-
<testsuite name="Application Test Suite">
23-
<directory suffix="Test.php">
24-
./tests
25-
</directory>
26-
</testsuite>
27-
</testsuites>
2834
</phpunit>

tests/Feature/ExampleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ public function testBasicTest()
1515
{
1616
$response = $this->get('/');
1717

18-
$response->assertStatus(200);
18+
$response->assertSee('Laravel AdminPanel');
1919
}
2020
}

0 commit comments

Comments
 (0)