style stylee style
This commit is contained in:
parent
f38c05d97c
commit
b8e9a02a14
6 changed files with 80 additions and 30 deletions
|
@ -1,16 +1,56 @@
|
||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
|
use ApiPlatform\Symfony\Bundle\ApiPlatformBundle;
|
||||||
|
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
|
||||||
|
use Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle;
|
||||||
|
use Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle;
|
||||||
|
use Liip\TestFixturesBundle\LiipTestFixturesBundle;
|
||||||
|
use Nelmio\CorsBundle\NelmioCorsBundle;
|
||||||
|
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
|
||||||
|
use Symfony\Bundle\MakerBundle\MakerBundle;
|
||||||
|
use Symfony\Bundle\SecurityBundle\SecurityBundle;
|
||||||
|
use Symfony\Bundle\TwigBundle\TwigBundle;
|
||||||
|
use Symfony\Bundle\WebProfilerBundle\WebProfilerBundle;
|
||||||
|
use Symfonycasts\TailwindBundle\SymfonycastsTailwindBundle;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
FrameworkBundle::class => [
|
||||||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
'all' => true,
|
||||||
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
],
|
||||||
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
MakerBundle::class => [
|
||||||
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
'dev' => true,
|
||||||
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
|
],
|
||||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
DoctrineBundle::class => [
|
||||||
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
|
'all' => true,
|
||||||
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
|
],
|
||||||
ApiPlatform\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
|
DoctrineMigrationsBundle::class => [
|
||||||
Liip\TestFixturesBundle\LiipTestFixturesBundle::class => ['dev' => true, 'test' => true],
|
'all' => true,
|
||||||
Symfonycasts\TailwindBundle\SymfonycastsTailwindBundle::class => ['all' => true],
|
],
|
||||||
|
TwigBundle::class => [
|
||||||
|
'all' => true,
|
||||||
|
],
|
||||||
|
DoctrineFixturesBundle::class => [
|
||||||
|
'dev' => true,
|
||||||
|
'test' => true,
|
||||||
|
],
|
||||||
|
WebProfilerBundle::class => [
|
||||||
|
'dev' => true,
|
||||||
|
'test' => true,
|
||||||
|
],
|
||||||
|
SecurityBundle::class => [
|
||||||
|
'all' => true,
|
||||||
|
],
|
||||||
|
NelmioCorsBundle::class => [
|
||||||
|
'all' => true,
|
||||||
|
],
|
||||||
|
ApiPlatformBundle::class => [
|
||||||
|
'all' => true,
|
||||||
|
],
|
||||||
|
LiipTestFixturesBundle::class => [
|
||||||
|
'dev' => true,
|
||||||
|
'test' => true,
|
||||||
|
],
|
||||||
|
SymfonycastsTailwindBundle::class => [
|
||||||
|
'all' => true,
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the importmap for this application.
|
* Returns the importmap for this application.
|
||||||
|
|
|
@ -106,13 +106,22 @@ describe(FoodOrderController::class, function (): void {
|
||||||
|
|
||||||
// Get the item names from the table rows
|
// Get the item names from the table rows
|
||||||
$rows = $lastTable->filter('tbody tr');
|
$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);
|
$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);
|
$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);
|
$this->assertEquals('C', $tdContent);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -2,15 +2,20 @@
|
||||||
|
|
||||||
test('example test', function (): void {
|
test('example test', function (): void {
|
||||||
// This is a simple example test
|
// This is a simple example test
|
||||||
expect(true)->toBeTrue();
|
expect(true)
|
||||||
expect(1 + 1)->toBe(2);
|
->toBeTrue();
|
||||||
expect('hello world')->toContain('world');
|
expect(1 + 1)
|
||||||
|
->toBe(2);
|
||||||
|
expect('hello world')
|
||||||
|
->toContain('world');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('array operations', function (): void {
|
test('array operations', function (): void {
|
||||||
$array = [1, 2, 3];
|
$array = [1, 2, 3];
|
||||||
|
|
||||||
expect($array)->toHaveCount(3);
|
expect($array)
|
||||||
expect($array)->toContain(2);
|
->toHaveCount(3);
|
||||||
|
expect($array)
|
||||||
|
->toContain(2);
|
||||||
expect($array[0])->toBe(1);
|
expect($array[0])->toBe(1);
|
||||||
});
|
});
|
Loading…
Add table
Add a link
Reference in a new issue