Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatabaseTransactionsを使う #735

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/Feature/Api/Webhook/CheckinWebhookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
use App\CheckinWebhook;
use App\Ejaculation;
use App\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Carbon;
use Tests\TestCase;

class CheckinWebhookTest extends TestCase
{
use RefreshDatabase;
use DatabaseTransactions;

protected function setUp(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Setting/WebhookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

use App\CheckinWebhook;
use App\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;

class WebhookTest extends TestCase
{
use RefreshDatabase;
use DatabaseTransactions;

protected function setUp(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/SettingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
use App\Like;
use App\User;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithFaker;
use Symfony\Component\DomCrawler\Crawler;
use Tests\TestCase;

class SettingTest extends TestCase
{
use RefreshDatabase;
use DatabaseTransactions;

protected function setUp(): void
{
Expand Down
1 change: 0 additions & 1 deletion tests/Unit/Http/Middleware/NormalizeLineEndingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Tests\Unit\Http\Middleware;

use App\Http\Middleware\NormalizeLineEnding;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Http\Request;
use Tests\TestCase;
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Services/CheckinCsvImporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
use App\Exceptions\CsvImportException;
use App\Services\CheckinCsvImporter;
use App\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Carbon;
use Tests\TestCase;

class CheckinCsvImporterTest extends TestCase
{
use RefreshDatabase;
use DatabaseTransactions;

protected function setUp(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Services/MetadataResolverServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Mockery\MockInterface;
use Tests\TestCase;

class MetadataResolverServiceTest extends TestCase
{
use RefreshDatabase;
use DatabaseTransactions;

protected function setUp(): void
{
Expand Down