Skip to content

Commit d198bd6

Browse files
committed
Remove service provider asserts
1 parent a6c6b30 commit d198bd6

File tree

9 files changed

+1
-205
lines changed

9 files changed

+1
-205
lines changed

README.md

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ Laravel-specific Testing Helpers and Assertions.
102102
- [dontSeeScheduleCount](#dontseeschedulecount)
103103
- [seeInSchedule](#seeinschedule)
104104
- [dontSeeInSchedule](#dontseeinschedule)
105-
- [ServiceProviderAsserts](#serviceproviderasserts)
106-
- [seeRegisteredAlias](#seeregisteredalias)
107-
- [dontSeeRegisteredAlias](#dontseeregisteredalias)
108-
- [seeRegisteredCommand](#seeregisteredcommand)
109-
- [dontSeeRegisteredCommand](#dontseeregisteredcommand)
110105

111106
## Helpers
112107

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

347-
### ServiceProviderAsserts
348-
349-
#### `seeRegisteredAlias()`
350-
351-
Assert that the given alias is registered:
352-
353-
```php
354-
$this->seeRegisteredAlias('Twitter');
355-
```
356-
357-
#### `dontSeeRegisteredAlias()`
358-
359-
Assert that the given alias is not registered:
360-
361-
```php
362-
$this->dontSeeRegisteredAlias('FooBarBaz');
363-
```
364-
365-
#### `seeRegisteredCommand()`
366-
367-
Assert that the given command is registered:
368-
369-
```php
370-
$this->seeRegisteredCommand('my-command');
371-
```
372-
373-
#### `dontSeeRegisteredCommand()`
374-
375-
Assert that the given command is not registered:
376-
377-
```php
378-
$this->dontSeeRegisteredCommand('foobarbaz');
379-
```
380-
381342
## Sponsors
382343

383344
[![Laravel Idea](art/sponsor-laravel-idea.png)](https://laravel-idea.com)<br>

src/Asserts/ServiceProviderAsserts.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/TestingTools.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminated\Testing\Asserts\FilesystemAsserts;
88
use Illuminated\Testing\Asserts\LogFileAsserts;
99
use Illuminated\Testing\Asserts\ScheduleAsserts;
10-
use Illuminated\Testing\Asserts\ServiceProviderAsserts;
1110
use Illuminated\Testing\Helpers\ApplicationHelpers;
1211

1312
trait TestingTools
@@ -21,5 +20,4 @@ trait TestingTools
2120
use FilesystemAsserts;
2221
use LogFileAsserts;
2322
use ScheduleAsserts;
24-
use ServiceProviderAsserts;
2523
}

tests/Asserts/ServiceProviderAssertsTest.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

tests/TestCase.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
use Illuminate\Contracts\Console\Kernel as KernelContract;
66
use Illuminate\Database\Eloquent\Factories\Factory;
77
use Illuminated\Testing\TestingTools;
8-
use Illuminated\Testing\Tests\App\Console\Kernel;
9-
use Illuminated\Testing\Tests\App\Providers\FixtureServiceProvider;
108

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

27-
/**
28-
* Get package providers.
29-
*
30-
* @param \Illuminate\Foundation\Application $app
31-
* @return array
32-
*/
33-
protected function getPackageProviders($app)
34-
{
35-
return [FixtureServiceProvider::class];
36-
}
37-
3825
/**
3926
* Setup the database.
4027
*/
@@ -74,7 +61,7 @@ private function setUpStorage(): void
7461
*/
7562
protected function resolveApplicationConsoleKernel($app)
7663
{
77-
$app->singleton(KernelContract::class, Kernel::class);
64+
parent::resolveApplicationConsoleKernel($app);
7865

7966
app(KernelContract::class);
8067
}

tests/TestingToolsTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminated\Testing\Asserts\FilesystemAsserts;
88
use Illuminated\Testing\Asserts\LogFileAsserts;
99
use Illuminated\Testing\Asserts\ScheduleAsserts;
10-
use Illuminated\Testing\Asserts\ServiceProviderAsserts;
1110
use Illuminated\Testing\Helpers\ApplicationHelpers;
1211
use Illuminated\Testing\TestingTools;
1312

@@ -27,6 +26,5 @@ public function it_is_using_all_testing_tools_asserts()
2726
$this->assertTraitUsed(TestingTools::class, FilesystemAsserts::class);
2827
$this->assertTraitUsed(TestingTools::class, LogFileAsserts::class);
2928
$this->assertTraitUsed(TestingTools::class, ScheduleAsserts::class);
30-
$this->assertTraitUsed(TestingTools::class, ServiceProviderAsserts::class);
3129
}
3230
}

tests/fixture/app/Console/Commands/RegisteredCommand.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/fixture/app/Console/Kernel.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/fixture/app/Providers/FixtureServiceProvider.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)