lint
This commit is contained in:
parent
a541338909
commit
7663f684a4
9 changed files with 50 additions and 32 deletions
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace App\Test\Controller;
|
||||
|
||||
use App\Entity\FoodVendor;
|
||||
use App\Kernel;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Doctrine\ORM\Tools\SchemaTool;
|
||||
use Override;
|
||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class FoodVendorControllerTest extends WebTestCase
|
||||
use function sprintf;
|
||||
|
||||
final class FoodVendorControllerTest extends WebTestCase
|
||||
{
|
||||
private KernelBrowser $client;
|
||||
private EntityManagerInterface $manager;
|
||||
|
@ -22,6 +24,8 @@ class FoodVendorControllerTest extends WebTestCase
|
|||
(new SchemaTool($this->manager))
|
||||
->createSchema($this->manager->getMetadataFactory()->getAllMetadata());
|
||||
}
|
||||
|
||||
#[Override]
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->client = static::createClient();
|
||||
|
@ -38,7 +42,7 @@ class FoodVendorControllerTest extends WebTestCase
|
|||
|
||||
public function testIndex(): void
|
||||
{
|
||||
$crawler = $this->client->request('GET', $this->path);
|
||||
$this->client->request('GET', $this->path);
|
||||
|
||||
self::assertResponseStatusCodeSame(200);
|
||||
self::assertPageTitleContains('FoodVendor index');
|
||||
|
@ -66,7 +70,7 @@ class FoodVendorControllerTest extends WebTestCase
|
|||
public function testShow(): void
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
$fixture = new FoodVendor();
|
||||
$fixture = new FoodVendor;
|
||||
$fixture->setName('My Title');
|
||||
|
||||
$this->manager->persist($fixture);
|
||||
|
@ -83,7 +87,7 @@ class FoodVendorControllerTest extends WebTestCase
|
|||
public function testEdit(): void
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
$fixture = new FoodVendor();
|
||||
$fixture = new FoodVendor;
|
||||
$fixture->setName('Value');
|
||||
|
||||
$this->manager->persist($fixture);
|
||||
|
@ -105,7 +109,7 @@ class FoodVendorControllerTest extends WebTestCase
|
|||
public function testRemove(): void
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
$fixture = new FoodVendor();
|
||||
$fixture = new FoodVendor;
|
||||
$fixture->setName('Value');
|
||||
|
||||
$this->manager->persist($fixture);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use Symfony\Component\Console\Input\ArrayInput;
|
||||
use Symfony\Component\Dotenv\Dotenv;
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue