Rename WebTestAssertions -> WebTestAssertionsTrait

This commit is contained in:
Valentin Udaltsov 2019-04-03 11:22:11 +03:00
parent 755f41192f
commit 2ae30a7e3d
3 changed files with 4 additions and 4 deletions

View File

@ -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
{ {

View File

@ -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;

View File

@ -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;