Skip to content

Commit dcedd10

Browse files
committed
Tests Updated
1 parent df424b2 commit dcedd10

File tree

4 files changed

+27
-73
lines changed

4 files changed

+27
-73
lines changed

.github/workflows/PHP8.0.yml

-43
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![Hydra - Zero Config API Boilerplate with Laravel Sanctum](https://res.cloudinary.com/roxlox/image/upload/v1653133921/hydra/hydra-trnsparent_jcsl4l.png)
44

55
# Hydra - Zero Config API Boilerplate with Laravel Sanctum
6-
![PHP 8.0 Tests](https://img.shields.io/github/workflow/status/hasinhayder/hydra/PHP%208.0%20Tests?label=PHP%208.0) ![PHP 8.1 Tests](https://img.shields.io/github/workflow/status/hasinhayder/hydra/PHP%208.1%20Tests?label=PHP%208.1) [![CircleCI](https://circleci.com/gh/hasinhayder/hydra/tree/master.svg?style=svg)](https://circleci.com/gh/hasinhayder/hydra/tree/master) ![GitHub](https://img.shields.io/github/license/hasinhayder/hydra?label=License&style=flat-square)
6+
![PHP 8.0 Tests](https://img.shields.io/github/workflow/status/hasinhayder/hydra/PHP%208.0%20Tests?label=PHP%208.0) ![PHP 8.1 Tests](https://img.shields.io/github/workflow/status/hasinhayder/hydra/PHP%208.1%20Tests?label=PHP%208.1) ![GitHub](https://img.shields.io/github/license/hasinhayder/hydra?label=License&style=flat-square)
77

88
Hydra is a zero-config API boilerplate with Laravel Sanctum and comes with excellent user and role management API out of the box. Start your next big API project with Hydra, focus on building business logic, and save countless hours of writing boring user and role management API again and again.
99

phpunit.xml

+25-29
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
>
7-
<testsuites>
8-
<testsuite name="Unit">
9-
<directory suffix="Test.php">./tests/Unit</directory>
10-
</testsuite>
11-
<testsuite name="Feature">
12-
<directory suffix="Test.php">./tests/Feature</directory>
13-
</testsuite>
14-
</testsuites>
15-
<coverage processUncoveredFiles="true">
16-
<include>
17-
<directory suffix=".php">./app</directory>
18-
</include>
19-
</coverage>
20-
<php>
21-
<env name="APP_ENV" value="testing"/>
22-
<env name="BCRYPT_ROUNDS" value="4"/>
23-
<env name="CACHE_DRIVER" value="array"/>
24-
<!-- <env name="DB_CONNECTION" value="sqlite"/> -->
25-
<!-- <env name="DB_DATABASE" value=":memory:"/> -->
26-
<env name="MAIL_MAILER" value="array"/>
27-
<env name="QUEUE_CONNECTION" value="sync"/>
28-
<env name="SESSION_DRIVER" value="array"/>
29-
<env name="TELESCOPE_ENABLED" value="false"/>
30-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
3+
<testsuites>
4+
<testsuite name="Unit">
5+
<directory suffix="Test.php">./tests/Unit</directory>
6+
</testsuite>
7+
<testsuite name="Feature">
8+
<directory suffix="Test.php">./tests/Feature</directory>
9+
</testsuite>
10+
</testsuites>
11+
<php>
12+
<env name="APP_ENV" value="testing"/>
13+
<env name="BCRYPT_ROUNDS" value="4"/>
14+
<env name="CACHE_DRIVER" value="array"/>
15+
<!-- <env name="DB_CONNECTION" value="sqlite"/> -->
16+
<!-- <env name="DB_DATABASE" value=":memory:"/> -->
17+
<env name="MAIL_MAILER" value="array"/>
18+
<env name="QUEUE_CONNECTION" value="sync"/>
19+
<env name="SESSION_DRIVER" value="array"/>
20+
<env name="TELESCOPE_ENABLED" value="false"/>
21+
</php>
22+
<source>
23+
<include>
24+
<directory suffix=".php">./app</directory>
25+
</include>
26+
</source>
3127
</phpunit>

tests/Feature/UserTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function test_new_user_login() {
6060
$response
6161
->assertJson(
6262
fn (AssertableJson $json) => $json->where('error', 0)
63+
->has('name')
6364
->has('token')
6465
->has('id')
6566
);

0 commit comments

Comments
 (0)