style stylee style

This commit is contained in:
lubiana 2025-05-24 23:03:21 +02:00
parent f38c05d97c
commit b8e9a02a14
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
6 changed files with 80 additions and 30 deletions

View file

@ -106,13 +106,22 @@ describe(FoodOrderController::class, function (): void {
// Get the item names from the table rows
$rows = $lastTable->filter('tbody tr');
$tdContent = $rows->eq(0)->filter('td')->eq(2)->text();
$tdContent = $rows->eq(0)
->filter('td')
->eq(2)
->text();
$this->assertEquals('A', $tdContent);
$tdContent = $rows->eq(1)->filter('td')->eq(2)->text();
$tdContent = $rows->eq(1)
->filter('td')
->eq(2)
->text();
$this->assertEquals('B', $tdContent);
$tdContent = $rows->eq(2)->filter('td')->eq(2)->text();
$tdContent = $rows->eq(2)
->filter('td')
->eq(2)
->text();
$this->assertEquals('C', $tdContent);
});

View file

@ -2,15 +2,20 @@
test('example test', function (): void {
// This is a simple example test
expect(true)->toBeTrue();
expect(1 + 1)->toBe(2);
expect('hello world')->toContain('world');
expect(true)
->toBeTrue();
expect(1 + 1)
->toBe(2);
expect('hello world')
->toContain('world');
});
test('array operations', function (): void {
$array = [1, 2, 3];
expect($array)->toHaveCount(3);
expect($array)->toContain(2);
expect($array)
->toHaveCount(3);
expect($array)
->toContain(2);
expect($array[0])->toBe(1);
});
});