Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
robersonfaria committed Nov 23, 2021
1 parent 0125b3f commit ab0b854
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion config/database-schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
'queue:*',
'schedule:*',
'view:*',
// 'phpunit:*'
'phpunit:*'
]
],

Expand Down
8 changes: 8 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
<directory suffix="Test.php">tests/Feature</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<include>
<directory suffix=".php">./tests</directory>
</include>
</coverage>
<php>
<server name="APP_ENV" value="testing"/>
<server name="BCRYPT_ROUNDS" value="4"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Console\Command;

class PHPUnitTestJobCommand extends Command
class PhpUnitTestJobCommand extends Command
{
/**
* The name and signature of the console command.
Expand Down
4 changes: 2 additions & 2 deletions src/DatabaseSchedulingServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace RobersonFaria\DatabaseSchedule;

use Cron\CronExpression;
use RobersonFaria\DatabaseSchedule\Console\Commands\PHPUnitTestJobCommand;
use RobersonFaria\DatabaseSchedule\Console\Commands\PhpUnitTestJobCommand;
use RobersonFaria\DatabaseSchedule\View\Helpers;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\Facades\Route;
Expand Down Expand Up @@ -69,7 +69,7 @@ public function boot()

$this->commands([
TestJobCommand::class,
PHPUnitTestJobCommand::class,
PhpUnitTestJobCommand::class,
ScheduleClearCacheCommand::class,
]);
}
Expand Down
11 changes: 4 additions & 7 deletions tests/Feature/ScheduleCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
<?php


namespace RobersonFaria\DatabaseSchedule\Tests\Feature;


use Illuminate\Support\Facades\Storage;
use RobersonFaria\DatabaseSchedule\Models\Schedule;
use RobersonFaria\DatabaseSchedule\Tests\TestCase;

class ScheduleCommandTest extends TestCase
{

public function test_inspire_test_command()
public function testInspireTestCommand()
{
$task = factory(Schedule::class)
->create([
Expand All @@ -29,7 +26,7 @@ public function test_inspire_test_command()
);
}

public function test_command_with_required_argument()
public function testCommandWithRequiredArgument()
{
$task = factory(Schedule::class)
->create([
Expand Down Expand Up @@ -59,7 +56,7 @@ public function test_command_with_required_argument()
});
}

public function test_command_with_optional_argument()
public function testCommandWithOptionalArgument()
{
$task = factory(Schedule::class)
->create([
Expand Down Expand Up @@ -92,4 +89,4 @@ public function test_command_with_optional_argument()
$this->assertStringEndsWith("phpunit:test argument='this is a argument' optionalArgument='this is a optional argument'", $event->command);
});
}
}
}
2 changes: 1 addition & 1 deletion tests/Unit/PhpUnitDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class PhpUnitDatabaseTest extends TestCase
{
public function test_database_and_factory_works()
public function testDatabaseAndFactoryWorks()
{
factory(Schedule::class, 2)->create();

Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/ScheduleCommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
});
}

public function test_run_inspire_command()
public function testRunInspireCommand()
{
factory(Schedule::class)
->create([
Expand All @@ -52,7 +52,7 @@ public function test_run_inspire_command()
$scheduleService->execute();
}

public function test_run_inspire_with_arguments()
public function testRunInspireWithArguments()
{
factory(Schedule::class)
->create([
Expand All @@ -73,7 +73,7 @@ public function test_run_inspire_with_arguments()
$scheduleService->execute();
}

public function test_run_inspire_with_optional_arguments()
public function testRunInspireWithOptionalArguments()
{
factory(Schedule::class)
->create([
Expand All @@ -94,7 +94,7 @@ public function test_run_inspire_with_optional_arguments()
$scheduleService->execute();
}

public function test_run_inspire_with_options_boolean()
public function testRunInspireWithOptionsBoolean()
{
factory(Schedule::class)
->create([
Expand Down

0 comments on commit ab0b854

Please sign in to comment.