Rename WebTestAssertions -> WebTestAssertionsTrait
This commit is contained in:
parent
755f41192f
commit
2ae30a7e3d
@ -26,7 +26,7 @@ use Symfony\Component\HttpFoundation\Test\Constraint as ResponseConstraint;
|
|||||||
*
|
*
|
||||||
* @see https://laravel.com/docs/5.7/dusk#available-assertions
|
* @see https://laravel.com/docs/5.7/dusk#available-assertions
|
||||||
*/
|
*/
|
||||||
trait WebTestAssertions
|
trait WebTestAssertionsTrait
|
||||||
{
|
{
|
||||||
public static function assertResponseIsSuccessful(string $message = ''): void
|
public static function assertResponseIsSuccessful(string $message = ''): void
|
||||||
{
|
{
|
@ -21,7 +21,7 @@ use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
|
|||||||
*/
|
*/
|
||||||
abstract class WebTestCase extends KernelTestCase
|
abstract class WebTestCase extends KernelTestCase
|
||||||
{
|
{
|
||||||
use WebTestAssertions;
|
use WebTestAssertionsTrait;
|
||||||
|
|
||||||
/** @var Client|null */
|
/** @var Client|null */
|
||||||
protected static $client;
|
protected static $client;
|
||||||
|
@ -14,7 +14,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Test;
|
|||||||
use PHPUnit\Framework\AssertionFailedError;
|
use PHPUnit\Framework\AssertionFailedError;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestAssertions;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestAssertionsTrait;
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
use Symfony\Component\BrowserKit\Cookie;
|
use Symfony\Component\BrowserKit\Cookie;
|
||||||
use Symfony\Component\BrowserKit\CookieJar;
|
use Symfony\Component\BrowserKit\CookieJar;
|
||||||
@ -275,7 +275,7 @@ class WebTestCaseTest extends TestCase
|
|||||||
private function getTester(KernelBrowser $client): WebTestCase
|
private function getTester(KernelBrowser $client): WebTestCase
|
||||||
{
|
{
|
||||||
return new class($client) extends WebTestCase {
|
return new class($client) extends WebTestCase {
|
||||||
use WebTestAssertions;
|
use WebTestAssertionsTrait;
|
||||||
|
|
||||||
protected static $client;
|
protected static $client;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user