Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace TestsFeatureAuth;
- use IlluminateFoundationTestingRefreshDatabase;
- use LaravelPassportClient;
- use TestsTestCase;
- use AppDirectory;
- use AppEvent;
- class AuthTest extends TestCase
- {
- use RefreshDatabase;
- /**
- * @test
- */
- public function can_authenticate()
- {
- $response = $this->json('POST', '/auth/token', [
- 'email' => $this->create('User', [], false)->email,
- 'password' => 'secret'
- ]);
- $response->assertStatus(200)
- ->assertJsonStructure(['token']);
- }
- }
- Error : Call to undefined method TestsFeatureAuthAuthTest::create()
- /home/amine/Apps/PassportV2/tests/Feature/Auth/AuthTest.php:28
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement