Skip to content

Commit

Permalink
csfix
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed Dec 3, 2024
1 parent 67e4afb commit 4917e41
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/Cocktail.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

namespace Kami\Cocktail\Models;

use Brick\Math\RoundingMode;
use Brick\Money\Context\DefaultContext;
use Carbon\Carbon;
use Brick\Money\Money;
use Kami\Cocktail\Utils;
use Illuminate\Support\Str;
use Brick\Math\RoundingMode;
use Laravel\Scout\Searchable;
use Spatie\Sluggable\HasSlug;
use Kami\RecipeUtils\Converter;
use Symfony\Component\Uid\Ulid;
use Spatie\Sluggable\SlugOptions;
use Illuminate\Support\Collection;
use Brick\Money\Context\DefaultContext;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Kami\RecipeUtils\UnitConverter\Units;
Expand Down
18 changes: 18 additions & 0 deletions tests/Feature/Http/AuthControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,22 @@ public function test_password_check_response(): void
->where('data.status', true)
);
}

public function test_confirm_account_verify_response(): void
{
Config::set('bar-assistant.mail_require_confirmation', true);

$user = User::factory()->create([
'email' => 'test@test.com',
'password' => Hash::make('my-test-password'),
'email_verified_at' => null,
]);

$response = $this->postJson('/api/auth/login', [
'email' => $user->email,
'password' => 'my-test-password'
]);

$response->dump();
}
}

0 comments on commit 4917e41

Please sign in to comment.