Ao executar o primeiro teste, tive o seguinte erro retornado:
1) Tests\Unit\TemporadaTest::testExample
Error: Call to a member function connection() on null
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1255
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1221
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1051
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:968
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1004
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasRelationships.php:334
D:\controle-series\controle-series\app\Temporada.php:15
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php:415
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php:401
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php:333
D:\controle-series\controle-series\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1525
D:\controle-series\controle-series\tests\Unit\TemporadaTest.php:21
Copiei e colei o código do instrutor, mesmo assim continua dando o mesmo erro. Fui ver a linha 21 do arquivo TemporadaTest.php e temos a seguinte linha:
$temporada->episodios->add($episodio1);
Podem me ajudar?