1 | <?php |
||
11 | class TestCase extends \PHPUnit\Framework\TestCase |
||
12 | { |
||
13 | protected function setUp() |
||
21 | |||
22 | protected function tearDown() |
||
26 | |||
27 | /** |
||
28 | * Populates Yii::$app with a new application |
||
29 | * The application will be destroyed on tearDown() automatically. |
||
30 | * |
||
31 | * @param array $config The application configuration, if needed |
||
32 | * @param string $appClass name of the application class to create |
||
33 | */ |
||
34 | protected function mockApplication($config = [], $appClass = '\yii\console\Application') |
||
54 | |||
55 | /** |
||
56 | * @return string vendor path |
||
57 | */ |
||
58 | protected function getVendorPath() |
||
62 | |||
63 | /** |
||
64 | * Destroys application in Yii::$app by setting it to null. |
||
65 | */ |
||
66 | protected function destroyApplication() |
||
70 | |||
71 | /** |
||
72 | * Setup tables for test ActiveRecord |
||
73 | */ |
||
74 | protected function setupTestDbData() |
||
104 | } |
||
105 |