1 | <?php |
||
26 | abstract class AbstractContext implements KernelAwareContext, MinkAwareContext |
||
27 | { |
||
28 | /** |
||
29 | * @var KernelInterface |
||
30 | */ |
||
31 | private $kernel; |
||
32 | |||
33 | /** |
||
34 | * @var Mink |
||
35 | */ |
||
36 | private $mink; |
||
37 | |||
38 | /** |
||
39 | * @var array |
||
40 | */ |
||
41 | private $minkParameters; |
||
42 | |||
43 | /** |
||
44 | * @var Generator|null |
||
45 | */ |
||
46 | private $faker; |
||
47 | |||
48 | /** |
||
49 | * @var EntityManagerInterface|null |
||
50 | */ |
||
51 | private $entityManager; |
||
52 | |||
53 | public function setMink(Mink $mink): void |
||
57 | |||
58 | public function setMinkParameters(array $parameters): void |
||
62 | |||
63 | public function setKernel(KernelInterface $kernel): void |
||
67 | |||
68 | protected function getRepository($className): EntityRepository |
||
72 | |||
73 | protected function getEntityManager(): EntityManagerInterface |
||
83 | |||
84 | protected function getFaker(): Generator |
||
92 | |||
93 | protected function getMinkParameters(): array |
||
97 | |||
98 | protected function getSession($name = null): Session |
||
102 | |||
103 | protected function getKernel(): KernelInterface |
||
107 | |||
108 | protected function getContainer(): ContainerInterface |
||
112 | |||
113 | protected function isSeleniumDriverUsed(): bool |
||
117 | |||
118 | protected function parseScenarioValue($rawValue) |
||
130 | } |
||
131 |