Skip to content

Commit e6e36d4

Browse files
authored
Merge pull request #3 from kitloong/feature/laravel10
Fix UT
2 parents 7ba599b + 9e7a03f commit e6e36d4

File tree

2 files changed

+15
-25
lines changed

2 files changed

+15
-25
lines changed

phpunit.xml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Test Suite">
14-
<directory>tests</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Test Suite">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
13+
<logging>
14+
<junit outputFile="build/report.junit.xml"/>
15+
</logging>
2616
</phpunit>

tests/JoinRelationshipExtraConditionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function test_extra_conditions_with_closure()
191191
User::joinRelationship('publishedPosts')->get();
192192

193193
$this->assertStringContainsString(
194-
'inner join "posts" on "posts"."user_id" = "users"."id" and "published" = ?',
194+
'inner join "posts" on "posts"."user_id" = "users"."id" and ("published" = ?)',
195195
$query
196196
);
197197
}

0 commit comments

Comments
 (0)