2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LaravelのHTTPテストでなぜかresponseが返ってこない件

Last updated at Posted at 2018-10-09

該当のテストを実行すると、下記のようなエラーになりました。

1) Tests\Controllers\your/test/path/file_name::success
Test code or tested code did not (only) close its own output buffers

原因は、表示するBladeでsectionを閉じていないことが原因でした。

@section('aaaa')
//表示するHTMLなど
@endsection //<b>←これがなかった</b>
2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?