Skip to content

Commit 57a01ad

Browse files
Support v1.0 of jasonmccreary/laravel-test-assertions (#102)
1 parent 4032806 commit 57a01ad

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
}
3838
},
3939
"suggest": {
40-
"jasonmccreary/laravel-test-assertions": "A set of helpful assertions when testing Laravel applications"
40+
"jasonmccreary/laravel-test-assertions": "Required to use additional assertions in generated tests (^1.0)."
4141
}
4242
}

src/Generators/TestGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ private function addFakerTrait(Controller $controller)
463463

464464
private function addTestAssertionsTrait(Controller $controller)
465465
{
466-
$this->addImport($controller, 'JMac\\Testing\\Traits\HttpTestAssertions');
467-
$this->addTrait($controller, 'HttpTestAssertions');
466+
$this->addImport($controller, 'JMac\\Testing\\Traits\AdditionalAssertions');
467+
$this->addTrait($controller, 'AdditionalAssertions');
468468
}
469469

470470
private function addRefreshDatabaseTrait(Controller $controller)

tests/fixtures/tests/readme-example.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
use Illuminate\Support\Facades\Event;
1212
use Illuminate\Support\Facades\Mail;
1313
use Illuminate\Support\Facades\Queue;
14-
use JMac\Testing\Traits\HttpTestAssertions;
14+
use JMac\Testing\Traits\AdditionalAssertions;
1515
use Tests\TestCase;
1616

1717
/**
1818
* @see \App\Http\Controllers\PostController
1919
*/
2020
class PostControllerTest extends TestCase
2121
{
22-
use HttpTestAssertions, RefreshDatabase, WithFaker;
22+
use AdditionalAssertions, RefreshDatabase, WithFaker;
2323

2424
/**
2525
* @test

tests/fixtures/tests/reference-cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
use App\User;
66
use Illuminate\Foundation\Testing\RefreshDatabase;
77
use Illuminate\Foundation\Testing\WithFaker;
8-
use JMac\Testing\Traits\HttpTestAssertions;
8+
use JMac\Testing\Traits\AdditionalAssertions;
99
use Tests\TestCase;
1010

1111
/**
1212
* @see \App\Http\Controllers\UserController
1313
*/
1414
class UserControllerTest extends TestCase
1515
{
16-
use HttpTestAssertions, RefreshDatabase, WithFaker;
16+
use AdditionalAssertions, RefreshDatabase, WithFaker;
1717

1818
/**
1919
* @test

0 commit comments

Comments
 (0)