tetssssss
This commit is contained in:
parent
6f07d70436
commit
8063e7bec9
28 changed files with 771 additions and 273 deletions
18
tests/Feature/Web/HelloWorldTest.php
Normal file
18
tests/Feature/Web/HelloWorldTest.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
test('Hello World', function (): void {
|
||||
|
||||
// This calls KernelTestCase::bootKernel(), and creates a
|
||||
// "client" that is acting as the browser
|
||||
$this->ensureKernelShutdown();
|
||||
$client = static::createClient();
|
||||
|
||||
// Request a specific page
|
||||
$crawler = $client->request('GET', '/');
|
||||
|
||||
// Validate a successful response and some content
|
||||
$this->assertResponseIsSuccessful();
|
||||
$this->assertSelectorTextContains('h1', 'Hello World');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue