Skip to content

Commit

Permalink
Remove unfinished test
Browse files Browse the repository at this point in the history
  • Loading branch information
xam-ps committed Dec 29, 2024
1 parent 81322da commit c2d74a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion tests/Feature/DashboardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public function test_dashboard_can_be_loaded_for_specific_year(): void
$user = User::factory()->create();

$dashboardPage = $this->actingAs($user)
->withSession(['banned' => false])
->get('/2019');
$dashboardPage->assertSee('Einnahmen 2019');
$dashboardPage->assertSee('Ausgaben 2019');
Expand Down
23 changes: 0 additions & 23 deletions tests/Feature/ExpenseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,6 @@ public function test_create_expense_page_is_loaded(): void
$expensePage->assertStatus(200);
}

//Create a test, that fills in the create expense form, submits it and checks, if the values are stored in the database.
public function test_create_expense(): void
{
$user = User::factory()->createOne();

$expense = [
'billing_date' => '2021-01-01',
'payment_date' => '2021-01-02',
'supplier_name' => 'Supplier',
'product_name' => 'Product',
'invoice_number' => '123',
'net' => 100.00,
'tax' => 19.00,
'gross' => 119.00,
'cost_type' => 4,
];

$this->actingAs($user)
->post('expense/', $expense);

$this->assertDatabaseHas('expenses', $expense);
}

protected function setUp(): void
{
parent::setUp();
Expand Down

0 comments on commit c2d74a2

Please sign in to comment.