<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uma-no-kawa</author_name>
  <author_url>https://blog.hatena.ne.jp/uma-no-kawa/</author_url>
  <blog_title>底辺SE奮闘記</blog_title>
  <blog_url>https://uma-no-kawa.hateblo.jp/</blog_url>
  <categories>
    <anon>Laravel</anon>
    <anon>ネタ</anon>
  </categories>
  <description>自分用メモ 環境 PHP 7.2.5 laravel/framework 7.24 現象 根本原因はよくわかっていないのですが、 php artisan make:test HogeTest --unit で作成した、DB操作系テストが Call to a member function connection() on null と表示され失敗した。 失敗のコード &lt;?php namespace Tests\Unit\Model; use App\Model\HogeTest; use Illuminate\Foundation\Testing\DatabaseTransactions; us…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuma-no-kawa.hateblo.jp%2Fentry%2F2020%2F10%2F12%2F173711&quot; title=&quot;【Laravel】ユニットテストで「Call to a member function connection() on null」と表示され失敗する - 底辺SE奮闘記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-12 17:37:11</published>
  <title>【Laravel】ユニットテストで「Call to a member function connection() on null」と表示され失敗する</title>
  <type>rich</type>
  <url>https://uma-no-kawa.hateblo.jp/entry/2020/10/12/173711</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
