Skip to content

Commit 7b9faa3

Browse files
committed
Update for assertArraySubset
1 parent 2c95ab7 commit 7b9faa3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"orchestra/testbench": "^3.1|^4.0",
3232
"mockery/mockery": "^1.0",
3333
"doctrine/dbal": "^2.5",
34-
"phpunit/phpcov": "^6.0"
34+
"phpunit/phpcov": "^6.0",
35+
"dms/phpunit-arraysubset-asserts": "^0.1.0"
3536
},
3637
"autoload": {
3738
"psr-0": {

tests/QueryBuilderTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
declare(strict_types=1);
33

4+
use DMS\PHPUnitExtensions\ArraySubset\Assert;
5+
use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts;
46
use Illuminate\Support\Facades\DB;
57
use Jenssegers\Mongodb\Collection;
68
use Jenssegers\Mongodb\Query\Builder;
@@ -11,6 +13,8 @@
1113

1214
class QueryBuilderTest extends TestCase
1315
{
16+
use ArraySubsetAsserts;
17+
1418
public function tearDown(): void
1519
{
1620
DB::collection('users')->truncate();

0 commit comments

Comments
 (0)