Abstract Class Yiisoft\Yii\Testing\FunctionalTestCase
| Inheritance | Yiisoft\ |
|---|
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $tester | ?\ |
Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| mockService() | Yiisoft\ |
Protected Methods
Property Details
Method Details
| protected void bootstrapApplication ( ?string $projectRootPath = null ) | ||
| $projectRootPath | ?string | |
protected function bootstrapApplication(?string $projectRootPath = null): void
{
$this->tester?->bootstrapApplication($projectRootPath);
}
| protected Yiisoft\ | ||
| $method | string | |
| $url | string | |
protected function doRequest(string $method, string $url): ResponseAccessor
{
return $this->tester?->doRequest($method, $url) ?? throw new Exception('Either $tester or $response is null');
}
| protected \ |
protected function getContainer(): ContainerInterface
{
return $this->tester?->getContainer() ?? throw new Exception('Either $tester or $container is null');
}
| public void mockService ( string $id, mixed $definition ) | ||
| $id | string | |
| $definition | mixed | |
public function mockService(string $id, mixed $definition): void
{
$this->tester?->mockService($id, $definition);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.