Skip to content

Commit

Permalink
Merge branch 'master' into 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Aug 21, 2022
2 parents 0990aaa + d198bd6 commit 8ccab87
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 205 deletions.
39 changes: 0 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ Laravel-specific Testing Helpers and Assertions.
- [dontSeeScheduleCount](#dontseeschedulecount)
- [seeInSchedule](#seeinschedule)
- [dontSeeInSchedule](#dontseeinschedule)
- [ServiceProviderAsserts](#serviceproviderasserts)
- [seeRegisteredAlias](#seeregisteredalias)
- [dontSeeRegisteredAlias](#dontseeregisteredalias)
- [seeRegisteredCommand](#seeregisteredcommand)
- [dontSeeRegisteredCommand](#dontseeregisteredcommand)

## Helpers

Expand Down Expand Up @@ -344,40 +339,6 @@ Assert that the given command is not scheduled:
$this->dontSeeInSchedule('foobarbaz');
```

### ServiceProviderAsserts

#### `seeRegisteredAlias()`

Assert that the given alias is registered:

```php
$this->seeRegisteredAlias('Twitter');
```

#### `dontSeeRegisteredAlias()`

Assert that the given alias is not registered:

```php
$this->dontSeeRegisteredAlias('FooBarBaz');
```

#### `seeRegisteredCommand()`

Assert that the given command is registered:

```php
$this->seeRegisteredCommand('my-command');
```

#### `dontSeeRegisteredCommand()`

Assert that the given command is not registered:

```php
$this->dontSeeRegisteredCommand('foobarbaz');
```

## Sponsors

[![Laravel Idea](art/sponsor-laravel-idea.png)](https://laravel-idea.com)<br>
Expand Down
45 changes: 0 additions & 45 deletions src/Asserts/ServiceProviderAsserts.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/TestingTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Illuminated\Testing\Asserts\FilesystemAsserts;
use Illuminated\Testing\Asserts\LogFileAsserts;
use Illuminated\Testing\Asserts\ScheduleAsserts;
use Illuminated\Testing\Asserts\ServiceProviderAsserts;
use Illuminated\Testing\Helpers\ApplicationHelpers;

trait TestingTools
Expand All @@ -21,5 +20,4 @@ trait TestingTools
use FilesystemAsserts;
use LogFileAsserts;
use ScheduleAsserts;
use ServiceProviderAsserts;
}
32 changes: 0 additions & 32 deletions tests/Asserts/ServiceProviderAssertsTest.php

This file was deleted.

15 changes: 1 addition & 14 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use Illuminate\Contracts\Console\Kernel as KernelContract;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminated\Testing\TestingTools;
use Illuminated\Testing\Tests\App\Console\Kernel;
use Illuminated\Testing\Tests\App\Providers\FixtureServiceProvider;

abstract class TestCase extends \Orchestra\Testbench\TestCase
{
Expand All @@ -24,17 +22,6 @@ protected function setUp(): void
$this->setUpStorage();
}

/**
* Get package providers.
*
* @param \Illuminate\Foundation\Application $app
* @return array
*/
protected function getPackageProviders($app)
{
return [FixtureServiceProvider::class];
}

/**
* Setup the database.
*/
Expand Down Expand Up @@ -74,7 +61,7 @@ private function setUpStorage(): void
*/
protected function resolveApplicationConsoleKernel($app)
{
$app->singleton(KernelContract::class, Kernel::class);
parent::resolveApplicationConsoleKernel($app);

app(KernelContract::class);
}
Expand Down
2 changes: 0 additions & 2 deletions tests/TestingToolsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Illuminated\Testing\Asserts\FilesystemAsserts;
use Illuminated\Testing\Asserts\LogFileAsserts;
use Illuminated\Testing\Asserts\ScheduleAsserts;
use Illuminated\Testing\Asserts\ServiceProviderAsserts;
use Illuminated\Testing\Helpers\ApplicationHelpers;
use Illuminated\Testing\TestingTools;

Expand All @@ -27,6 +26,5 @@ public function it_is_using_all_testing_tools_asserts()
$this->assertTraitUsed(TestingTools::class, FilesystemAsserts::class);
$this->assertTraitUsed(TestingTools::class, LogFileAsserts::class);
$this->assertTraitUsed(TestingTools::class, ScheduleAsserts::class);
$this->assertTraitUsed(TestingTools::class, ServiceProviderAsserts::class);
}
}
23 changes: 0 additions & 23 deletions tests/fixture/app/Console/Commands/RegisteredCommand.php

This file was deleted.

7 changes: 0 additions & 7 deletions tests/fixture/app/Console/Kernel.php

This file was deleted.

41 changes: 0 additions & 41 deletions tests/fixture/app/Providers/FixtureServiceProvider.php

This file was deleted.

0 comments on commit 8ccab87

Please sign in to comment.