mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-24 00:27:47 +00:00
chore: inspect staged changes for commit message
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
it('shows an empty state when there are no projects', function () {
|
||||
$this->view('livewire.project.index', [
|
||||
'projects' => collect(),
|
||||
])
|
||||
->assertSee('No projects found.')
|
||||
->assertSee('onboarding');
|
||||
});
|
||||
|
||||
it('does not show the empty state when projects exist', function () {
|
||||
$project = new class
|
||||
{
|
||||
public string $name = 'Test Project';
|
||||
|
||||
public string $description = 'A project description';
|
||||
|
||||
public string $uuid = 'test-project-uuid';
|
||||
|
||||
public $environments;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->environments = collect();
|
||||
}
|
||||
|
||||
public function navigateTo(): string
|
||||
{
|
||||
return '#';
|
||||
}
|
||||
};
|
||||
|
||||
$this->view('livewire.project.index', [
|
||||
'projects' => collect([$project]),
|
||||
])
|
||||
->assertSee('Test Project')
|
||||
->assertDontSee('No projects found.');
|
||||
});
|
||||
Reference in New Issue
Block a user