Está aparecendo erro em um arquivo:
Tests\Feature\SeriesRepositoryTest
⨯ when a series is created its seasons and episodes must also be created
---
• Tests\Feature\SeriesRepositoryTest > when a series is created its seasons and episodes must also be created
Illuminate\Database\QueryException
SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: series.nome (SQL: insert into "series" ("updated_at", "created_at") values (2023-12-02 22:57:36, 2023-12-02 22:57:36))
at F:\....\vendor\laravel\framework\src\Illuminate\Database\Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
1 F:\....\vendor\laravel\framework\src\Illuminate\Database\Connection.php:545
PDOException::("SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: series.nome")
2 F:\....\vendor\laravel\framework\src\Illuminate\Database\Connection.php:545
PDOStatement::execute()
protected function runQueryCallback($query, $bindings, Closure $callback)
{
// To execute the statement, we'll simply call the callback, which will actually
// run the SQL against the PDO connection. Then we can calculate the time it
// took to execute and log the query SQL, bindings and time in our memory.
try {
return $callback($query, $bindings);
}
// If an exception occurs when attempting to run a query, we'll format the error
// message to include the bindings with SQL, which will make this exception a
// lot more helpful to the developer instead of just the database's errors.
catch (Exception $e) {
throw new QueryException(
$query, $this->prepareBindings($bindings), $e
);
}
}