Skip to content

Commit

Permalink
Update Test
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiiYoussef committed Feb 21, 2024
1 parent 1e2c7a6 commit 6935e81
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 13 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ jobs:
#- name: Check PSR-12 Codestyle
# run: composer lint

# - name: Upload Coverage
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./coverage/coverage.xml
# fail_ci_if_error: true
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: RamiiYoussef/laravel-kafka
5 changes: 0 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,4 @@
<exclude>./tests/</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>
30 changes: 30 additions & 0 deletions phpunit.xml.dist.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Kafkaesk Test Suite">
<directory suffix=".php">./tests/</directory>
<exclude>./tests/</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function boot()
{
$this->publishes([
__DIR__ . '/../config/kafka.php' => config_path('kafka.php'),
]);
], 'laravel-kafka-config');
}

/**
Expand Down Expand Up @@ -233,7 +233,7 @@ public function registerQueue()
private function registerConnector($manager, $container)
{
$manager->addConnector('kafka', function () use ($container) {
return new KafkaConnector($container, $container['log']);
return new KafkaConnector($container['kafka'], $container['log']);
});
}

Expand Down

0 comments on commit 6935e81

Please sign in to comment.