protected function createTestModelWithNullTransformer(array $attributes = []) : Model
{
$model = new class extends Model implements Transformable
{
protected $fillable = ['name', 'price', 'is_rotten'];
protected $table = 'fruits';
public static function transformer()
{
return null;
}
};
return $this->storeModel($model, $attributes);
}