1 | <?php |
||
34 | abstract class AbstractWebTestCase extends WebTestCase { |
||
35 | |||
36 | /** |
||
37 | * Client. |
||
38 | * |
||
39 | * @var Client |
||
40 | */ |
||
41 | protected $client; |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | protected static function getKernelClass(): string { |
||
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | protected function setUp(): void { |
||
60 | |||
61 | /** |
||
62 | * {@inheritDoc} |
||
63 | */ |
||
64 | public static function setUpBeforeClass(): void { |
||
75 | |||
76 | /** |
||
77 | * Set up a cookie. |
||
78 | * |
||
79 | * @param UserInterface|string $user The user. |
||
80 | * @param array $roles The user roles. |
||
81 | * @param string $firewallName The firewall name. |
||
82 | * @param string $firewallContext The firewall context. |
||
83 | * @return Cookie Returns the cookie. |
||
84 | */ |
||
85 | protected function setUpCookie($user = "webeweb", array $roles = ["ROLE_SUPER_ADMIN"], string $firewallName = "main", string $firewallContext = "main"): Cookie { |
||
98 | |||
99 | /** |
||
100 | * Set up the schema tool. |
||
101 | * |
||
102 | * @return void |
||
103 | * @throws Exception Throws an exception if an error occurs. |
||
104 | */ |
||
105 | protected static function setUpSchemaTool(): void { |
||
116 | |||
117 | /** |
||
118 | * Set up the user fixtures. |
||
119 | * |
||
120 | * @return void |
||
121 | * @throws Exception Throws an exception if an error occurs. |
||
122 | */ |
||
123 | protected static function setUpUserFixtures(): void { |
||
134 | |||
135 | /** |
||
136 | * {@inheritDoc} |
||
137 | */ |
||
138 | protected function tearDown(): void { |
||
141 | } |
||
142 |