You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
910 B

5 months ago
<?php
namespace Tests\Feature;
// use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*/
public function test_the_application_returns_a_successful_response(): void
{
$response = $this->get('/');
$response
->assertOk()
->assertSee('2026江苏省新消费创新创业大赛')
->assertSee('href="admin/c/xxf/login"', false);
5 months ago
}
public function test_homepage_signup_link_preserves_public_source(): void
{
$this->get('/?src=poster_A')
->assertOk()
->assertSee('href="admin/c/xxf/login?src=poster_A"', false);
$this->get('/?src=bad%20code')
->assertOk()
->assertSee('href="admin/c/xxf/login"', false)
->assertDontSee('href="admin/c/xxf/login?src=', false);
}
5 months ago
}